龚焕茏
2024-03-05 6d9e8a35d81e6d1feb2136690661d43c6cfd53b7
vite.config.ts
@@ -26,8 +26,8 @@
      open: true,
      proxy: {
        [env.VITE_APP_BASE_API]: {
          target: 'http://192.168.3.43:8080',
          // target: 'http://localhost:8080',
          // target: 'http://192.168.3.43:8080',
          target: 'http://localhost:8080',
          changeOrigin: true,
          rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
        }