早到devServer
增加紅色圖片中紅色的模塊
proxy: {
'/dev-api': {
target: 'http://localhost:8090', // 這是目標接口所在域名後臺接口域名,
ws: true, // 如果要代理 websockets,配置這個參數
secure: false, // 如果是https接口,需要配置這個參數
changeOrigin: true, // 是否跨域
pathRewrite: { '^/dev-api': '/' }
}
},