fix #209
Former-commit-id: d7010f02783505101c190835398a7c37eb307b55 [formerly d7010f02783505101c190835398a7c37eb307b55 [formerly d7010f02783505101c190835398a7c37eb307b55 [formerly d7010f02783505101c190835398a7c37eb307b55 [formerly a3290a545292ceb2b1919cdbacda986cf377725a [formerly 68f1acb63acc7b4d865d6f8ef291f5e3a0dc343c]]]]] Former-commit-id: c27bdeb76049a09c66ed9c7099482178669d8916 Former-commit-id: c17ffd2492fa3bbe035e1aff55f3a1f7a30fa865 Former-commit-id: 22bee1feb72768a03b09a7a152b8aadf4fadebb5 [formerly b85ad6c9f13e74b0d4982696986a2d4766c54a30] Former-commit-id: 2436d4d6c011e4a7a4caf4225023ab527edafe3b Former-commit-id: dabbec6015fb3389dca549b0aacdaa1ac5ba3b96 Former-commit-id: 20757fed0eef07b85e236f73803b2ab6862ecf7f Former-commit-id: 5952b4fb216126a1781baf8b8629d7cdaa73bf65 Former-commit-id: d3607c0521f90d7b368a0bb3de661010653f5041
This commit is contained in:
@@ -45,14 +45,9 @@ export default {
|
||||
}, 500)
|
||||
},
|
||||
// 监听路由 控制侧边栏激活状态
|
||||
'$route': {
|
||||
handler ({ fullPath }) {
|
||||
this.active = fullPath
|
||||
this.$nextTick(() => {
|
||||
if (this.aside.length > 0 && this.$refs.menu) {
|
||||
this.$refs.menu.activeIndex = fullPath
|
||||
}
|
||||
})
|
||||
'$route.fullPath': {
|
||||
handler (value) {
|
||||
this.active = value
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user