odc.xiaohui
2024-02-27 5e163108829ce7c3cf9d22e9470373d5d93d2106
vite.config.ts
@@ -26,8 +26,8 @@
      open: true,
      proxy: {
        [env.VITE_APP_BASE_API]: {
          // target: 'http://192.168.3.228: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), '')
        }