From 1351a0a8ae53b360901e307f4ac67b4b9f4d0c6a Mon Sep 17 00:00:00 2001 From: liyang <1711467488@qq.com> Date: Fri, 2 Nov 2018 13:18:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E9=AB=98=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/layout/header-aside/components/menu-side/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layout/header-aside/components/menu-side/index.vue b/src/layout/header-aside/components/menu-side/index.vue index 54276a72..76e3585d 100644 --- a/src/layout/header-aside/components/menu-side/index.vue +++ b/src/layout/header-aside/components/menu-side/index.vue @@ -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 } })