莫名其妙遇到的,尤其给领导演示的时候,真的贼尴尬,没啥影响的小错误,直接一整个盖在页面上。找了好久解决方案,。
在vue.config里
devServer: {
// host: 'localhost',
port: 5090,//自定义
// open: true,
proxy: {
"/api": {
target: "",
changeOrigin: true,
// pathRewrite: {
// '^/api': ''
// }
},
},
client: { //加上这个就好了
overlay: false,
},
},