Browse Source

菜单还原

zhangjie 3 năm trước cách đây
mục cha
commit
7cce9d27f4
1 tập tin đã thay đổi với 1 bổ sung3 xóa
  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 { UPDATE_CURRENT_PATHS } from "../../store/currentPaths";
 import { UPDATE_MENU_LIST } from "../../store/menuList";
-import menus from "./menus";
 
 export default {
   name: "HomeSide",
@@ -123,8 +122,7 @@ export default {
   },
   async created() {
     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.updatePath();
   },