diff --git a/src/App.vue b/src/App.vue index 728979eb68c214ffcbc11fc4b60d5f89117f0edd..ff630dfc48d170d1c15573b07dc3f7a504047b81 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 ''