From bfe80b477f5e189a38584464fa10b22c3f2af414 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Thu, 26 May 2022 17:02:14 +0800
Subject: [PATCH] 角色权限修改
---
src/page/index/tags.vue | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/page/index/tags.vue b/src/page/index/tags.vue
index 25382b6..2203885 100644
--- a/src/page/index/tags.vue
+++ b/src/page/index/tags.vue
@@ -66,7 +66,8 @@
mounted() {
this.setActive();
this.tagList.forEach((item, index) => {
- if (item.label == "首页" && (this.userInfo.role_name == "police" || this.userInfo.role_name == "policeAdmin" || this.userInfo.role_name == "administrator")){
+ if (item.label == "首页" && (this.userInfo.isweb == "1" || this.userInfo.role_name == "policeAdmin" || this.userInfo.role_name == "administrator")){
+ // if (item.label == "首页" && (this.userInfo.role_name == "police" || this.userInfo.role_name == "policeAdmin" || this.userInfo.role_name == "administrator")){
this.$store.commit("set_hideHome", false);
}else if (item.label == "首页" && (this.userInfo.role_name == "操作员")) {
this.tagList.splice(index, 1);
--
Gitblit v1.9.3