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' }