龙三郎 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/, '')
         }
       }
     }