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