zhangjie %!s(int64=3) %!d(string=hai) anos
pai
achega
7cce9d27f4
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  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();
   },