You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
650 B

/*
* @Author: your name
* @Date: 2021-10-20 13:15:16
* @LastEditTime: 2021-10-22 09:24:06
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/vue.config.js
*/
module.exports = {
publicPath: "./",
devServer: {
port: "8081",
proxy: {
'/sws': {//代理api
target: "http://cloud.sws010.com",// 代理接口
changeOrigin: true,//是否跨域
ws: true, // proxy websockets
pathRewrite: {//重写路径
"^/sws": ''//代理路径
}
}
}
}
}