全局更新了localStorage支持

This commit is contained in:
高子兴 2024-07-02 00:33:26 +08:00
parent 0ee8483e23
commit ff0ae36d16

View File

@ -5,6 +5,7 @@ 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