龙三郎 1 rok temu
rodzic
commit
0728a23f50
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      vite.config.ts

+ 2 - 2
vite.config.ts

@@ -29,9 +29,9 @@ export default defineConfig({
         target: 'http://192.168.103.33:8585/',
         // target: 'http://192.168.100.115:8585/', // 生产环境
         changeOrigin: true,
-        rewrite: (path) => { 
+        rewrite: (path) => {
           // console.log('path', path)
-          return path.replace(/^\/api/, '')
+          return path.replace(/^\/forward-service/, '')
         }
       }
     }