叶松
2023-11-22 9e9c34fe3454d7aa4cab8d4b76608d0cf9f51e74
web/vue.config.js
@@ -3,12 +3,12 @@
  // publicPath: process.env.NODE_ENV === 'production' ? '/pipe' : '/',
  devServer: {
    proxy: {
      '/api': {
      '/suapi': {
        target: process.env.VUE_APP_BASE_URL,
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''  //路径重写
          '^/suapi': ''  //路径重写
        } 
      },
    }