pull/81/head
parent
882eefb00e
commit
3fd7594de0
|
@ -40,6 +40,7 @@ export default {
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
"$route.name"(newName, oldName) {
|
"$route.name"(newName, oldName) {
|
||||||
|
console.log(newName,oldName);
|
||||||
this.gerRouter();
|
this.gerRouter();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue