diff --git a/.env.dev b/.env.dev index 2008a002..dc7d2502 100644 --- a/.env.dev +++ b/.env.dev @@ -32,3 +32,6 @@ VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn' # 验证码的开关 VITE_APP_CAPTCHA_ENABLE=true + +# GoView域名 +VITE_GOVIEW_URL='http://127.0.0.1:3000' \ No newline at end of file diff --git a/.env.local b/.env.local index ad084700..35765584 100644 --- a/.env.local +++ b/.env.local @@ -29,3 +29,6 @@ VITE_MALL_H5_DOMAIN='http://localhost:3000' # 验证码的开关 VITE_APP_CAPTCHA_ENABLE=false + +# GoView域名 +VITE_GOVIEW_URL='http://127.0.0.1:3000' \ No newline at end of file diff --git a/.env.prod b/.env.prod index 8b78c415..ca7cb8e4 100644 --- a/.env.prod +++ b/.env.prod @@ -29,3 +29,6 @@ VITE_OUT_DIR=dist-prod # 商城H5会员端域名 VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn' + +# GoView域名 +VITE_GOVIEW_URL='http://127.0.0.1:3000' \ No newline at end of file diff --git a/.env.stage b/.env.stage index 3d005c7b..084337c6 100644 --- a/.env.stage +++ b/.env.stage @@ -29,3 +29,6 @@ VITE_OUT_DIR=dist-stage # 商城H5会员端域名 VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn' + +# GoView域名 +VITE_GOVIEW_URL='http://127.0.0.1:3000' \ No newline at end of file diff --git a/.env.test b/.env.test index 80f4c660..2252e146 100644 --- a/.env.test +++ b/.env.test @@ -29,3 +29,6 @@ VITE_OUT_DIR=dist-test # 商城H5会员端域名 VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn' + +# GoView域名 +VITE_GOVIEW_URL='http://127.0.0.1:3000' \ No newline at end of file diff --git a/src/views/report/goview/index.vue b/src/views/report/goview/index.vue index 038b0624..78cac8b1 100644 --- a/src/views/report/goview/index.vue +++ b/src/views/report/goview/index.vue @@ -8,5 +8,5 @@ diff --git a/types/env.d.ts b/types/env.d.ts index 464dd5cf..124dd565 100644 --- a/types/env.d.ts +++ b/types/env.d.ts @@ -25,6 +25,7 @@ interface ImportMetaEnv { readonly VITE_DROP_CONSOLE: string readonly VITE_SOURCEMAP: string readonly VITE_OUT_DIR: string + readonly VITE_GOVIEW_URL: string } declare global {