Merge pull request '1' (#81) from pc-master into portal

Reviewed-on: #81
portal
xiaomeng 2023-12-22 07:53:16 +00:00
commit 2b03b4db24
2 changed files with 49 additions and 45 deletions

View File

@ -40,6 +40,7 @@ export default {
},
watch: {
"$route.name"(newName, oldName) {
console.log(newName,oldName);
this.gerRouter();
},
},

View File

@ -283,9 +283,12 @@ export default {
return
} else if (item.router != this.routerNow && !item.http) {
} else if (item.router == 'largeScreen') {
const foundObject = this.limitUserId.find(item => item.id == 2);
if (!foundObject) return this.$message('您当前没有权限查看!')
} else if (item.router != this.routerNow && !item.http) {
this.$router.push({ name: item.router })
}
} else {