龙三郎 hai 1 ano
pai
achega
0728a23f50
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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/, '')
         }
       }
     }