Commit 3869962d authored by 刘殿昕's avatar 刘殿昕

运营管控权限

parent cd32177a
...@@ -58,11 +58,14 @@ export default { ...@@ -58,11 +58,14 @@ export default {
}, },
methods: { methods: {
initNavList() { initNavList() {
if (this.$store.state.role == 0) { if (
this.$store.state.userInfo.is_admin == 3 ||
this.$store.state.userInfo.is_admin == 4
) {
this.navList = this.userNav; this.navList = this.userNav;
} else if (this.$store.state.role == 1) { } else if (this.$store.state.userInfo.is_admin == 2) {
this.navList = this.userNav1; this.navList = this.userNav1;
} else if (this.$store.state.role == 2) { } else if (this.$store.state.userInfo.is_admin == 1) {
this.navList = this.userNav2; this.navList = this.userNav2;
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment