lxf 1 ano atrás
pai
commit
8e3f6b5c17
2 arquivos alterados com 5 adições e 5 exclusões
  1. 3 3
      .env.staging
  2. 2 2
      vite.config.js

+ 3 - 3
.env.staging

@@ -5,9 +5,9 @@ VITE_APP_TITLE = 胜德
 VITE_APP_ENV = 'staging'
 
 # 若依管理系统/生产环境
-VITE_APP_BASE_API = '/prod-api'
+VITE_APP_BASE_API = '/test-api'
 
-VITE_APP_WS_API = ':10000/prod-api'
+VITE_APP_WS_API = ':10000/test-api'
 
 # 是否在打包时开启压缩,支持 gzip 和 brotli
 VITE_BUILD_COMPRESS = gzip
@@ -15,4 +15,4 @@ VITE_BUILD_COMPRESS = gzip
 # 是否强制刷新
 VITE_REFRESH = true
 
-VITE_APP_IP = '139.9.184.42'
+VITE_APP_IP = '121.37.194.75'

+ 2 - 2
vite.config.js

@@ -39,9 +39,9 @@ export default defineConfig(({
       proxy: {
         // https://cn.vitejs.dev/config/#server-proxy
         '/dev-api': {
-          target: 'http://139.9.184.42:10000/prod-api',
+          target: 'http://121.37.194.75:10000/test-api',
           // 正式地址
-          // target:"http://www.printmat.cn:8866/prod-api",
+          // target: 'http://139.9.184.42:10000/prod-api',
           changeOrigin: true,
           rewrite: (p) => p.replace(/^\/dev-api/, '')
         }