refactor(对接wcs): 配置修改

This commit is contained in:
Kelvin 2024-11-27 10:36:05 +08:00
parent 0c06372931
commit d190d5208c
2 changed files with 36 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

@ -43,11 +43,18 @@ 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
@ -55,7 +62,7 @@ module.exports = {
css: {
loaderOptions: {
sass: {
sassOptions: { outputStyle: "expanded" }
sassOptions: {outputStyle: "expanded"}
}
}
},