diff --git a/src/router/index.js b/src/router/index.js index c310660..e0acbe2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -69,7 +69,7 @@ router.beforeEach(async (to, from, next) => { tool.data.set("MENU", response.data.menu) tool.data.set("userinfo", response.data.user) tool.data.set("PERMISSIONS", response.data.permissions) - tool.data.set("DASHBOARDGRID", response.data.dashboardGrid) + tool.data.set("dashboardgrid", response.data.dashboardGrid) var menu = router.sc_getMenu(); var menuRouter = filterAsyncRouter(menu) menuRouter = flatAsyncRoutes(menuRouter) diff --git a/src/views/home/widgets/index.vue b/src/views/home/widgets/index.vue index 2a0431c..79161f8 100644 --- a/src/views/home/widgets/index.vue +++ b/src/views/home/widgets/index.vue @@ -133,7 +133,7 @@ return allCompsList }, myCompsList(){ - var myGrid = this.$tool.data.get("DASHBOARDGRID") + var myGrid = this.$tool.data.get("dashboardgrid") return this.allCompsList.filter(item => !item.disabled && myGrid.includes(item.key)) }, nowCompsList(){ diff --git a/src/views/login/components/passwordForm.vue b/src/views/login/components/passwordForm.vue index df454e7..e5ea368 100644 --- a/src/views/login/components/passwordForm.vue +++ b/src/views/login/components/passwordForm.vue @@ -98,7 +98,7 @@ this.$tool.data.set("MENU", menu.data.menu) this.$tool.data.set("userinfo", menu.data.user) this.$tool.data.set("PERMISSIONS", menu.data.permissions) - this.$tool.data.set("DASHBOARDGRID", menu.data.dashboardGrid) + this.$tool.data.set("dashboardgrid", menu.data.dashboardGrid) }else{ this.islogin = false this.$message.warning(menu.message) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index a4dcd3b..25c27f3 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -110,7 +110,7 @@ this.$tool.data.remove("userinfo") this.$tool.data.remove("MENU") this.$tool.data.remove("PERMISSIONS") - this.$tool.data.remove("DASHBOARDGRID") + this.$tool.data.remove("dashboardgrid") this.$tool.data.remove("grid") this.$store.commit("clearViewTags") this.$store.commit("clearKeepLive")