vuex-persistedstate
import persistedState from "vuex-persistedstate";
Vue.use(Vuex);
const store = new Vuex.Store({
modules: {,
},
getters,
plugins: [persistedState()],//存储在本地当中
});
export default store;
vuex-persistedstate
import persistedState from "vuex-persistedstate";
Vue.use(Vuex);
const store = new Vuex.Store({
modules: {,
},
getters,
plugins: [persistedState()],//存储在本地当中
});
export default store;

被折叠的 条评论
为什么被折叠?