根目录新建vue.config.js
跨域
module.exports = {
devServer: {
proxy: {
'/api': {
target: 'http://****/',
changeOrigin: true
}
}
}
}
资源404
module.exports = {
publicPath: './',
}