company/src/main.js
@@ -10,7 +10,6 @@ import plugins from './plugins' import { mapState, mapMutations } from 'vuex' import { fetchMenuTree } from './api/system/menu' Vue.config.productionTip = false Vue.use(ElementUI, { size: 'small' @@ -19,7 +18,6 @@ Vue.use(directives) Vue.use(filters) Vue.use(plugins) new Vue({ data: { loading: false @@ -60,7 +58,7 @@ if (storeMenus.length > 0 && this.homePage == null) { this.setHomePage(storeMenus[0]) } await fetchMenuTree() await fetchMenuTree(this.userInfo.type) .then(menus => { // 添加菜单 storeMenus.push.apply(storeMenus, menus)