zhoushihao
2024-04-18 cb5be3f2bb73cea7def3d0bb9ab5d5d409d2f9df
UI-Project/vite.config.js
@@ -22,12 +22,12 @@
    https: false,
    proxy: {
      '/api': {
        target: 'http://localhost:8081/',
        target: 'http://localhost:8080/mesModuleTools',
        changeOrigin: true,
        rewrite: (path) => path.replace(/^\/api/, '/'),
      },
      '/api2': {
        target: 'http://localhost:8081/mesModuleTools',
        target: 'http://localhost:8085/mesModuleTools',
        changeOrigin: true,
        pathRewrite: {
          '^/api2': '',