robinvdvleuten / vuex-persistedstate

💾 Persist and rehydrate your Vuex state between page reloads.
https://npm.im/vuex-persistedstate
MIT License
5.77k stars 378 forks source link

vue3.0版本无效 #362

Closed xushanpei closed 4 years ago

xushanpei commented 4 years ago

import { createStore } from "vuex"; import home from './home/index'; import { GlobalState } from '../typings/layout'; import createPersistedState from "vuex-persistedstate";

const store = createStore({ modules:{ home }, plugins: [createPersistedState()] })

export default store

刷新页面数据状态会自动变成初始化的值,不知道什么问题呢

请大佬解答

robinvdvleuten commented 4 years ago

Sorry I don't know what to make from this.