refactor(对接wcs): 配置修改
This commit is contained in:
parent
cfb8ce96a7
commit
83e9c5bdc2
@ -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
|
||||
})
|
||||
|
@ -49,6 +49,14 @@ module.exports = {
|
||||
'^/ureport': '/ureport'
|
||||
}
|
||||
},
|
||||
'/wcs': {
|
||||
target: 'http://192.168.8.60:1880',
|
||||
ws: false,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/wcs': ''
|
||||
}
|
||||
},
|
||||
},
|
||||
disableHostCheck: true
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user