明梦爽
2022-08-15 6cf9fe5c9eb7dc664b7a64454cd327d08baf1a93
vue.config.js
@@ -1,18 +1,4 @@
const webpack = require('webpack');
const webpack = require('webpack')
module.exports = {
  publicPath:'./',
  configureWebpack: {
    devServer: {
      proxy: {
        '/api': {
          target: 'http://localhost:7070',
          changeOrigin: true,
          ws:true,
          pathRewrite: {
            '^/api':'/'
          }
        }
      }
    }
  },
}
  publicPath: '/'
}