Explorar o código

feat: 更新本地代理端口

chenhao %!s(int64=2) %!d(string=hai) anos
pai
achega
e850e10f9b
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  1. 2 5
      server.config.ts

+ 2 - 5
server.config.ts

@@ -2,11 +2,8 @@ import type { ServerOptions } from 'vite'
 
 const server: ServerOptions = {
   proxy: {
-    '^/?api/': {
-      target: 'http://192.168.10.41:7201',
-    },
-    '^/?file/': {
-      target: 'http://192.168.10.41:7200',
+    '^/?(api|file)/': {
+      target: 'http://192.168.10.41:8200',
     },
   },
 }