From 89dbb8c9e8b5a4b280967d73cadbde8ad6b1dc20 Mon Sep 17 00:00:00 2001 From: dhb52 Date: Sun, 5 Nov 2023 23:14:56 +0800 Subject: [PATCH 1/6] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96.env=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 3 +++ src/components/DocAlert/index.vue | 2 +- src/views/Login/SocialLogin.vue | 8 ++++---- types/env.d.ts | 1 + 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 3c5303b5..86af972a 100644 --- a/.env +++ b/.env @@ -13,5 +13,8 @@ VITE_APP_TENANT_ENABLE=true # 验证码的开关 VITE_APP_CAPTCHA_ENABLE=true +# 文档地址的开关 +VITE_APP_DOCALERT_ENABLE=false + # 百度统计 VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc diff --git a/src/components/DocAlert/index.vue b/src/components/DocAlert/index.vue index 3a3feab7..0073266c 100644 --- a/src/components/DocAlert/index.vue +++ b/src/components/DocAlert/index.vue @@ -22,7 +22,7 @@ const goToUrl = () => { /** 是否开启 */ const getEnable = () => { - return import.meta.env.VITE_APP_TENANT_ENABLE === 'true' + return import.meta.env.VITE_APP_DOCALERT_ENABLE !== 'false' }