提高兼容性

Former-commit-id: 7aee8f91a8c4ec487e5fc092d136a300641fe144 [formerly 7aee8f91a8c4ec487e5fc092d136a300641fe144 [formerly 7aee8f91a8c4ec487e5fc092d136a300641fe144 [formerly 7aee8f91a8c4ec487e5fc092d136a300641fe144 [formerly aad502e8ff4cf4678209bb8921f2fc2d45965794 [formerly f1480f51494bb1fc93892ea72bc99eda8a6229c8]]]]]
Former-commit-id: fb18332801268dc982361987a826eba0607b1007
Former-commit-id: 879712f252ba19c5cec2fb904f370466768b5210
Former-commit-id: 001076c322678cbd02fc87d9dd46506f58c5993f [formerly f1b0c8012f1d8f956c36b5c93fc5303170409858]
Former-commit-id: 9886d8add7568650ca8adb73420325edeff80471
Former-commit-id: 0fd1b00469e785facc1b98932dde1bb5e7941d8c
Former-commit-id: fb277d5e092700756060d492f1c26164f937cb8c
Former-commit-id: e99284b813c77bfc8772417e8a7aa6c2971c775a
Former-commit-id: 28ae40fef1a2599e29b0880d35d15c8690abf192
This commit is contained in:
liyang
2018-11-02 13:18:30 +08:00
parent d5952187c9
commit 1351a0a8ae

View File

@@ -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
}
})