|
@@ -119,7 +119,10 @@
|
|
created() {
|
|
created() {
|
|
//--update-begin----author:scott---date:20190320------for:根据后台菜单配置,判断是否路由菜单字段,动态选择是否生成路由(为了支持参数URL菜单)------
|
|
//--update-begin----author:scott---date:20190320------for:根据后台菜单配置,判断是否路由菜单字段,动态选择是否生成路由(为了支持参数URL菜单)------
|
|
//this.menus = this.mainRouters.find((item) => item.path === '/').children;
|
|
//this.menus = this.mainRouters.find((item) => item.path === '/').children;
|
|
- this.menus = this.permissionMenuList
|
|
|
|
|
|
+ if(this.permissionMenuList){
|
|
|
|
+ this.menus = this.permissionMenuList
|
|
|
|
+ }
|
|
|
|
+
|
|
// 根据后台配置菜单,重新排序加载路由信息
|
|
// 根据后台配置菜单,重新排序加载路由信息
|
|
console.log('----加载菜单逻辑----')
|
|
console.log('----加载菜单逻辑----')
|
|
console.log(this.mainRouters)
|
|
console.log(this.mainRouters)
|