浏览代码

菜单还原

zhangjie 3 年之前
父节点
当前提交
7cce9d27f4
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/modules/portal/views/home/HomeSide.vue

+ 1 - 3
src/modules/portal/views/home/HomeSide.vue

@@ -93,7 +93,6 @@ const MENU_ICONS = {
 import { mapMutations } from "vuex";
 import { mapMutations } from "vuex";
 import { UPDATE_CURRENT_PATHS } from "../../store/currentPaths";
 import { UPDATE_CURRENT_PATHS } from "../../store/currentPaths";
 import { UPDATE_MENU_LIST } from "../../store/menuList";
 import { UPDATE_MENU_LIST } from "../../store/menuList";
-import menus from "./menus";
 
 
 export default {
 export default {
   name: "HomeSide",
   name: "HomeSide",
@@ -123,8 +122,7 @@ export default {
   },
   },
   async created() {
   async created() {
     this.group = routesToMenu.find((v) => this.$route.path.startsWith(v.path));
     this.group = routesToMenu.find((v) => this.$route.path.startsWith(v.path));
-    // this.menuList = await this.getUserPrivileges();
-    this.menuList = menus;
+    this.menuList = await this.getUserPrivileges();
     this.UPDATE_MENU_LIST(this.menuList);
     this.UPDATE_MENU_LIST(this.menuList);
     this.updatePath();
     this.updatePath();
   },
   },