浏览代码

更正:在产品模式中无法正常访问的问题

tomlin 3 年之前
父节点
当前提交
b2690074b2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Vben2/.env.production

+ 2 - 2
Vben2/.env.production

@@ -16,11 +16,11 @@ VITE_BUILD_COMPRESS = 'none'
 VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
 
 # Basic interface address SPA
-VITE_GLOB_API_URL=https://localhost:5005
+VITE_GLOB_API_URL=/api
 
 # File upload address, optional
 # It can be forwarded by nginx or write the actual address directly
-VITE_GLOB_UPLOAD_URL=https://localhost:5005
+VITE_GLOB_UPLOAD_URL=/api
 
 # Interface prefix
 VITE_GLOB_API_URL_PREFIX=