|
@@ -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();
|
|
|
},
|