diff --git a/apps/web-antd/.env b/apps/web-antd/.env index c14a467fb00..63c9389f44e 100644 --- a/apps/web-antd/.env +++ b/apps/web-antd/.env @@ -3,3 +3,9 @@ VITE_APP_TITLE=Vben Admin Antd # 应用命名空间,用于缓存、store等功能的前缀,确保隔离 VITE_APP_NAMESPACE=vben-web-antd + +# public path +VITE_BASE=/vben-antd/ + +# 是否注入全局loading +VITE_INJECT_APP_LOADING=false diff --git a/apps/web-antd/.env.analyze b/apps/web-antd/.env.analyze index ffafa8dd529..ac89e243d61 100644 --- a/apps/web-antd/.env.analyze +++ b/apps/web-antd/.env.analyze @@ -1,5 +1,4 @@ -# public path -VITE_BASE=/ + # Basic interface address SPA VITE_GLOB_API_URL=/api diff --git a/apps/web-antd/.env.development b/apps/web-antd/.env.development index c138f482918..485ea7c17ba 100644 --- a/apps/web-antd/.env.development +++ b/apps/web-antd/.env.development @@ -1,8 +1,6 @@ # 端口号 VITE_PORT=5666 -VITE_BASE=/ - # 接口地址 VITE_GLOB_API_URL=/api @@ -12,5 +10,4 @@ VITE_NITRO_MOCK=true # 是否打开 devtools,true 为打开,false 为关闭 VITE_DEVTOOLS=false -# 是否注入全局loading -VITE_INJECT_APP_LOADING=true + diff --git a/apps/web-antd/.env.production b/apps/web-antd/.env.production index 5375847a6ca..76989561dc1 100644 --- a/apps/web-antd/.env.production +++ b/apps/web-antd/.env.production @@ -1,4 +1,3 @@ -VITE_BASE=/ # 接口地址 VITE_GLOB_API_URL=https://mock-napi.vben.pro/api @@ -12,8 +11,5 @@ VITE_PWA=false # vue-router 的模式 VITE_ROUTER_HISTORY=hash -# 是否注入全局loading -VITE_INJECT_APP_LOADING=true - # 打包后是否生成dist.zip VITE_ARCHIVER=true diff --git a/apps/web-antd/index.html b/apps/web-antd/index.html index 480eb84de6a..9b0a8dd080a 100644 --- a/apps/web-antd/index.html +++ b/apps/web-antd/index.html @@ -14,7 +14,7 @@