export const state = () => ({ wishNum: 0 }); export const mutations = { SET_WISH: (state) => { state.wishNum = 0; }, } let Num = res.total; setStore("wishNum", Num);
##我这样写对不对。我获取不到$store.state.user.wishNum的值本地的值在变化然而他还是0。
婷婷同学_
慕妹3242003
相关分类