From 86530afbeb3b20fcc005baf16dd87888168f6106 Mon Sep 17 00:00:00 2001 From: zhangjun1 Date: Wed, 2 Nov 2022 14:09:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E8=8F=9C=E5=8D=95=E5=85=BC?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 728979e..ff630df 100644 --- a/src/App.vue +++ b/src/App.vue @@ -53,7 +53,7 @@ export default { }, rowPath(){ if(this.pageShow&&this.$store.state.userInfo){ - return this.menuObj[this.$route.path].rowPath + return this.menuObj[this.$route.path]&&this.menuObj[this.$route.path].rowPath }else{ return '' } @@ -63,7 +63,7 @@ export default { // console.log(2222222) // console.log(this.navMenu) // console.log(this.rowPath) - return this.navMenu[this.rowPath.slice(1,2)] + return this.rowPath?this.navMenu[this.rowPath.slice(1,2)]:'' }else{ return '' -- 2.26.0