Commit f1880f06 authored by FE-安焕焕's avatar FE-安焕焕 👣

菜单问题

parent 6e6486e2
...@@ -165,14 +165,14 @@ import localstorage from '../service/localstorage.service.js' ...@@ -165,14 +165,14 @@ import localstorage from '../service/localstorage.service.js'
// // refesh是否为刷新页面 // // refesh是否为刷新页面
this.levelOneName = name this.levelOneName = name
const menus = this.menuList.filter(v => name === v.name)[0] const menus = this.menuList.filter(v => name === v.name)[0]
this.childMenu = menus.child ? menus.child : this.menuList[0].child this.childMenu = menus&&menus.child ? menus.child : this.menuList[0].child
if (!refesh) { // 点击菜单默认展示第一个菜单 if (!refesh) { // 点击菜单默认展示第一个菜单
this.levelTwoName = [] this.levelTwoName = []
let initName = this.getInitName(name, menus) let initName = this.getInitName(name, menus)
this.levelTwoName.push(initName.levelTwoName) this.levelTwoName.push(initName.levelTwoName)
this.levelThreeName = initName.levelThreeName this.levelThreeName = initName.levelThreeName
} }
if (menus.loadMenu) { // 简历管理模块需要加载渠道简历 if (menus&&menus.loadMenu) { // 简历管理模块需要加载渠道简历
this.getChannelMenu() this.getChannelMenu()
} }
if (refesh&&this.$route.path.indexOf('channel') > -1) { if (refesh&&this.$route.path.indexOf('channel') > -1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment