Sfoglia il codice sorgente

chore: api接口修改

赖奇 1 anno fa
parent
commit
5316aa8c62
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      apps/web-ele/.env.production
  2. 1 1
      apps/web-ele/vite.config.mts

+ 1 - 1
apps/web-ele/.env.production

@@ -1,7 +1,7 @@
 VITE_BASE=/
 
 # 接口地址
-VITE_GLOB_API_URL=https://dz.kdboss.cn
+VITE_GLOB_API_URL=https://dzapi.kdboss.cn
 
 # 是否开启压缩,可以设置为 none, brotli, gzip
 VITE_COMPRESS=none

+ 1 - 1
apps/web-ele/vite.config.mts

@@ -37,7 +37,7 @@ export default defineConfig(async () => {
             rewrite: (path) => path.replace(/^\/dev-api/, ''),
             // mock代理目标地址
             // target: 'http://211.149.199.65:5012/',
-            target: 'https://dz.kdboss.cn/',
+            target: 'https://dzapi.kdboss.cn',
             ws: true,
           },
         },