no message

Former-commit-id: be83d62dd34dc214f8ffd09a288be1d6285102a5 [formerly be83d62dd34dc214f8ffd09a288be1d6285102a5 [formerly be83d62dd34dc214f8ffd09a288be1d6285102a5 [formerly be83d62dd34dc214f8ffd09a288be1d6285102a5 [formerly a5c296ceafaf7aaea771572749803d4a6ef7d260 [formerly cd0b2dcb0db6a5ca83782976856a8e573d08b5ad]]]]]
Former-commit-id: 9293594febd4614897be88c42452c9dff4586292
Former-commit-id: 37d552500fd1a21b29ee90bb5ac1491dc0c00bf5
Former-commit-id: d5db584dc47cd0c264942c4364f8a96ff0284127 [formerly 5b1609a5008e9fce5eea56dcbd1c989247a8ffb8]
Former-commit-id: 0490fd9bfa64da86ec9fad49c1e0fa7f03b0e8ea
Former-commit-id: 279bfb24614ac3e9122e43e55385fd83dfeb379d
Former-commit-id: 791f96de4a03f73b80adada2ad2f05ee2e9a0026
Former-commit-id: b8a981efde634ad8ae740b86b317fdc16b9abd06
Former-commit-id: 96ab21408a94787848264f89633aa57479953e1c
This commit is contained in:
liyang
2018-06-27 08:02:26 +08:00
parent cffe10f9c6
commit 9e41e586ea
2 changed files with 5 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
:collapse="collapse"
:unique-opened="true"
:default-active="active"
ref="menu"
@select="handleMenuSelect">
<template v-for="(menu, menuIndex) in menus">
<d2-layout-main-menu-item v-if="menu.children === undefined" :menu="menu" :key="menuIndex"/>
@@ -58,6 +59,9 @@ export default {
const _side = side.filter(menu => menu.path === path)
this.menus = _side.length > 0 ? _side[0].children : []
this.active = val[val.length - 1].path
this.$nextTick(() => {
this.$refs.menu.activeIndex = this.active
})
},
immediate: true
}