This commit is contained in:
2023-07-03 19:29:18 +08:00
parent c4670df8d5
commit 238bb7d5bc
2 changed files with 6 additions and 5 deletions

View File

@@ -72,8 +72,7 @@ export default {
position fixed position fixed
top 50% top 50%
left 50% left 50%
width 45% width 40%
max-width 420px
transition .3s transition .3s
transform translate3d(-50%, -50%, 0) transform translate3d(-50%, -50%, 0)
overflow hidden overflow hidden

View File

@@ -204,9 +204,11 @@ export default {
}, },
childmenus () { childmenus () {
let res = [] let res = []
if (this.menus.length) { this.menus.map(el => {
res = this.menus[Number(this.$route.meta.jumpPath) - 1].children if (el.index === this.$route.meta.jumpPath) {
} res = el.children
}
})
return res return res
} }
}, },