Browse Source

首页修改仓库管理员获取基地列表

master
邓宏 1 year ago
parent
commit
6b48263819
  1. 3
      pages/home/index.vue

3
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

Loading…
Cancel
Save