pull/81/head
孙萌 2023-12-22 15:42:29 +08:00
parent 882eefb00e
commit 3fd7594de0
2 changed files with 49 additions and 45 deletions

View File

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

View File

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