导航
This commit is contained in:
@@ -72,8 +72,7 @@ export default {
|
||||
position fixed
|
||||
top 50%
|
||||
left 50%
|
||||
width 45%
|
||||
max-width 420px
|
||||
width 40%
|
||||
transition .3s
|
||||
transform translate3d(-50%, -50%, 0)
|
||||
overflow hidden
|
||||
|
||||
@@ -204,9 +204,11 @@ export default {
|
||||
},
|
||||
childmenus () {
|
||||
let res = []
|
||||
if (this.menus.length) {
|
||||
res = this.menus[Number(this.$route.meta.jumpPath) - 1].children
|
||||
}
|
||||
this.menus.map(el => {
|
||||
if (el.index === this.$route.meta.jumpPath) {
|
||||
res = el.children
|
||||
}
|
||||
})
|
||||
return res
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user