diff --git a/ry-vue3/.env.test b/ry-vue3/.env.test index eae21ab..9c4da2f 100644 --- a/ry-vue3/.env.test +++ b/ry-vue3/.env.test @@ -1,7 +1,7 @@ # 测试环境 API 基路径 (nginx 反向代理前缀) VITE_APP_BASE_API = '/hg-api' -# 测试环境静态资源子路径 (nginx 部署在 /hegui/) +# 测试环境静态资源子路径 (nginx 部署在 /hg/) VITE_BASE = '/hg/' # 执行方(供应商)注册跳转地址 (测试环境) diff --git a/ry-vue3/vite.config.js b/ry-vue3/vite.config.js index 0d43f5a..bc6be22 100644 --- a/ry-vue3/vite.config.js +++ b/ry-vue3/vite.config.js @@ -10,7 +10,7 @@ export default defineConfig(({ mode }) => { // 开发 API 前缀 = /dev-api (Vite dev proxy), 生产 = /hg-api (nginx 反代) const apiPath = env.VITE_APP_BASE_API || '/dev-api' return { - // 部署基路径: prod = / (.env.production), test = /hegui/ (.env.test), 开发默认 / + // 部署基路径: prod = / (.env.production), test = /hg/ (.env.test), 开发默认 / base: env.VITE_BASE || '/', plugins: [ vue(),