From 6b482638199e357241bc995b71a983799c612c17 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Wed, 26 Jul 2023 17:05:09 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=BF=AE=E6=94=B9=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E7=AE=A1=E7=90=86=E5=91=98=E8=8E=B7=E5=8F=96=E5=9F=BA?= =?UTF-8?q?=E5=9C=B0=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/home/index.vue b/pages/home/index.vue index 25e3e36..f676f9d 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -350,8 +350,9 @@ import request,{host} from '@/common/request' } }, computed:{ + //是否可以切换基地 isAdmin(){ - return this.$store.getters.userInfo.roleCode=='company_admin' + return /^company_admin$|^base_admin$|^ware_admin$/.test(this.$store.getters.userInfo.roleCode) }, isEmpty(){ if(!this.baseIndex)return (this.baseInfo.farmWork||[]).length+(this.baseInfo.farmingInput||[]).length<=0