Relative Content

Tag Archive for vue.jsvuejs3vue-componentstore

How to send array of object via a store

i am using vue3 with options api
as shown in the section titled code, i set an object to a store. in section storeTest.vue it shows how the store is implemented, and in watch it shows how i listen to changes occured to the store.
at run time, despite there are values assigned to either of geojson and order, the watch statement does not report any changes occured. i expect that the values assigned to geojson and order are to be printed in the console,
but nothing gets displayed