严智鑫
2024-04-17 2e9ca8f1ec3efc5c98fcec1b1e4225db874c0bee
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': '',