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: '/' }