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

菜单问题

parent 6e6486e2
......@@ -165,14 +165,14 @@ import localstorage from '../service/localstorage.service.js'
// // refesh是否为刷新页面
this.levelOneName = name
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) { // 点击菜单默认展示第一个菜单
this.levelTwoName = []
let initName = this.getInitName(name, menus)
this.levelTwoName.push(initName.levelTwoName)
this.levelThreeName = initName.levelThreeName
}
if (menus.loadMenu) { // 简历管理模块需要加载渠道简历
if (menus&&menus.loadMenu) { // 简历管理模块需要加载渠道简历
this.getChannelMenu()
}
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