龙三郎 1 年之前
父節點
當前提交
0728a23f50
共有 1 個文件被更改,包括 2 次插入2 次删除
  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/, '')
         }
       }
     }