Former-commit-id: 23dbf65aeb10765ddda7c8f4faa33d423d59f420
This commit is contained in:
liyang
2018-11-02 13:24:33 +08:00
parent 99728bc8a5
commit d85b4e0e29
2 changed files with 8 additions and 21 deletions
@@ -59,7 +59,7 @@ export default {
handler (val) {
this.active = val[val.length - 1].path
this.$nextTick(() => {
if (this.aside.length > 0) {
if (this.aside.length > 0 && this.$refs.menu) {
this.$refs.menu.activeIndex = this.active
}
})