diff --git a/.env b/.env index 3c5303b5b10ab5cf949ec09c1a0804287e30b189..86af972aa29637f2442b9a38b1406f42c31ade67 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 3a3feab7ca3e226e7a46ee979d4632bc9428e289..0073266c38a12dc201545706d856d4654e8f486d 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' }