Browse Source

fix: 提交

bug/0816
yinsiyu 2 months ago
parent
commit
8681b76c44
2 changed files with 7 additions and 0 deletions
  1. +1
    -0
      package.json
  2. +6
    -0
      src/store/index.js

+ 1
- 0
package.json View File

@@ -50,6 +50,7 @@
"vue-router": "3.4.9",
"vuedraggable": "^2.24.3",
"vuex": "3.6.0",
"vuex-persistedstate": "^4.1.0",
"vxe-table": "^3.8.6",
"xe-utils": "^3.5.27"
},


+ 6
- 0
src/store/index.js View File

@@ -6,10 +6,16 @@ import tagsView from "./modules/tagsView";
import permission from "./modules/permission";
import settings from "./modules/settings";
import getters from "./getters";
import createPersistedState from "vuex-persistedstate";

Vue.use(Vuex);

const store = new Vuex.Store({
plugins: [
createPersistedState({
storage: window.localStorage, // 注意
}),
],
modules: {
app,
user,


Loading…
Cancel
Save