优化移动端打开三级菜单后header错位的问题

This commit is contained in:
dqjdda
2019-08-23 17:10:02 +08:00
parent aa36c9e438
commit 52393ef57f
6 changed files with 9 additions and 5 deletions

View File

@@ -37,6 +37,9 @@ export default {
if (first && first.name !== '首页') {
matched = [{ path: '/dashboard', meta: { title: '首页' }}].concat(matched)
}
if (matched.length >= 4) {
matched.splice(1, 1)
}
this.levelList = matched
},
pathCompile(path) {