From 6e7dd796103460f2a9af8e0c554a2efe26dc25dd Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 4 Sep 2024 11:01:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=AC=E5=8F=B8=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dept/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 59e5ef1..f3339ee 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -56,7 +56,10 @@ icon="el-icon-plus" size="mini" @click="handleAddCompany" - v-if="userId == 1" + v-if=" + userId == 1 && + (ENV === 'development-nw' || ENV === 'production-nw') + " >新增公司 @@ -421,6 +424,7 @@ export default { }, ], userId: sessionStorage.getItem('userId'), + ENV: process.env.VUE_APP_ENV, // 获取当前运行环境 如是南网开发环境或线上环境 则显示新增公司按钮 } }, created() {