Sfoglia il codice sorgente

build(vite): 更新 API 代理配置

- 启用真实环境的 API 代理目标 URL
- 注释掉本地和测试环境的 API 代理目标 URL
nahida 11 mesi fa
parent
commit
7f3929c6ba
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      vite.config.ts

+ 2 - 2
vite.config.ts

@@ -31,9 +31,9 @@ export default defineConfig({
   server: {
     proxy: {
       '/api': {
-        // target: 'http://172.16.102.52:8080',
+        target: 'http://172.16.102.52:8080',
         //  target: 'http://localhost:8080',
-         target: 'http://192.168.110.235:8080',
+        //  target: 'http://192.168.110.235:8080',
         changeOrigin: true,
         rewrite: (path) => path.replace(/^\/api/, '')
       }