export const state = () => ({
wishNum: 0
});
export const mutations = {
SET_WISH: (state) => {
state.wishNum = 0;
},
}
let Num = res.total;
setStore("wishNum", Num);
-sharp-sharp
whether I am writing this correctly. I can"t get the value of $store.state.user.wishNum. The local value is changing, but it"s still 0.