From a3704743dfea3588a7b395abf3090a0ffee91a23 Mon Sep 17 00:00:00 2001 From: iczer <1126263215@qq.com> Date: Thu, 22 Sep 2022 11:42:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=B7=B7=E5=90=88?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=EF=BC=8C=E5=A4=B4=E9=83=A8=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E9=80=89=E4=B8=AD=E7=8A=B6=E6=80=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/menu/menu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/menu/menu.js b/src/components/menu/menu.js index f0ff305..0861858 100644 --- a/src/components/menu/menu.js +++ b/src/components/menu/menu.js @@ -235,7 +235,7 @@ export default { let matches = this.$route.matched const route = matches[matches.length - 1] let chose = this.routesMap[route.path] - if (chose.meta && chose.meta.highlight) { + if (chose && chose.meta && chose.meta.highlight) { chose = this.routesMap[chose.meta.highlight] const resolve = this.$router.resolve({path: chose.fullPath}) matches = (resolve.resolved && resolve.resolved.matched) || matches