From 1b7938c16751e5b1cae4b3c57323d6ed87a5907c Mon Sep 17 00:00:00 2001 From: q4speed Date: Thu, 14 May 2020 13:13:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9B=B4=E6=8E=A5=E7=94=A8ur?= =?UTF-8?q?l=E6=89=93=E5=BC=80=E9=A1=B5=E9=9D=A2=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=AD=A3=E7=A1=AE=E5=AE=9A=E4=BD=8D=E4=B8=80?= =?UTF-8?q?=E7=BA=A7=E8=8F=9C=E5=8D=95=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/components/common/head/HeaderTopMenus.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/common/head/HeaderTopMenus.vue b/frontend/src/business/components/common/head/HeaderTopMenus.vue index 4ad9be2b69..52922e21fd 100644 --- a/frontend/src/business/components/common/head/HeaderTopMenus.vue +++ b/frontend/src/business/components/common/head/HeaderTopMenus.vue @@ -33,7 +33,8 @@ } }, watch: { - '$route'() { + '$route'(to) { + this.activeIndex = to.matched[0].path; this.handleSelect(this.activeIndex); } },