Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
vue.config.js 372 Bytes
Copy Edit Raw Blame History
let proxyObj = {}
proxyObj['/'] = {
// ws=>websocket
ws: false,
target: 'http://localhost:8081',
// 发送请求头host会被设置成target
changeOrigin: true,
// 不重写请求路径
PathRewrite: {
'^/': '/'
}
}
module.exports = {
devServer: {
host: 'localhost',
port: 8080,
proxy: proxyObj
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化