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
|
||||
})
|
||||
|
@ -43,19 +43,27 @@ module.exports = {
|
||||
},
|
||||
'/ureport': {
|
||||
target: 'http://localhost:8080',
|
||||
ws:false,
|
||||
ws: false,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/ureport': '/ureport'
|
||||
}
|
||||
},
|
||||
'/wcs': {
|
||||
target: 'http://192.168.8.60:1880',
|
||||
ws: false,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/wcs': ''
|
||||
}
|
||||
},
|
||||
},
|
||||
disableHostCheck: true
|
||||
},
|
||||
css: {
|
||||
loaderOptions: {
|
||||
sass: {
|
||||
sassOptions: { outputStyle: "expanded" }
|
||||
sassOptions: {outputStyle: "expanded"}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user