소스 검색

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

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=