refactor(对接wcs): 配置修改

This commit is contained in:
Kelvin 2024-11-27 10:35:22 +08:00
parent cfb8ce96a7
commit 83e9c5bdc2
2 changed files with 37 additions and 29 deletions

View File

@ -22,7 +22,7 @@ const service = axios.create({
const serviceWcs = axios.create({
// axios中请求配置有baseURL选项表示请求URL公共部分
baseURL: "http://192.168.8.60:1880",
baseURL: "/wcs",
// 超时
timeout: 30000
})

View File

@ -49,6 +49,14 @@ module.exports = {
'^/ureport': '/ureport'
}
},
'/wcs': {
target: 'http://192.168.8.60:1880',
ws: false,
changeOrigin: true,
pathRewrite: {
'^/wcs': ''
}
},
},
disableHostCheck: true
},