全局更新了localStorage支持
This commit is contained in:
parent
21f5c6833a
commit
61f4176dba
@ -5,6 +5,7 @@ import meetingManagement from './meetingManagement'
|
||||
import newsManagement from './newsManagement'
|
||||
import organizationManagement from './organizationManagement'
|
||||
import userManagement from './userManagement'
|
||||
import createPersistedState from "vuex-persistedstate";
|
||||
|
||||
// 请不要直接修改本文件,使用修改/store目录下的对应模块名称的js的方式来代替->
|
||||
|
||||
@ -16,7 +17,13 @@ const store = createStore({
|
||||
newsManagement,
|
||||
organizationManagement,
|
||||
userManagement
|
||||
}
|
||||
},
|
||||
|
||||
plugins: [
|
||||
createPersistedState({
|
||||
storage: window.localStorage,
|
||||
}),
|
||||
]
|
||||
})
|
||||
|
||||
export default store
|
||||
|
||||
Loading…
Reference in New Issue
Block a user