problem description
location.href="/PageOffice/text/modelToText?cacheId=${vm.contaractId}";
location.hrefhttp://192.168.61.120:8081/PageOffice/text/modelToText?cacheId=${vm.contaractId}
"/PageOffice/*": {
target: "http://192.168.61.120:8081",
changeOrigin: true,
/* pathRewrite: {
"/PageOffice": "/"
} */
pathRewrite: {"/PageOffice":""}
},
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)
proxyTable: {
"/pty": {
//target: "https://www.easy-mock.com/mock/5a1e9b811f943e71b6c7b207/orange",
target: "http://59.110.141.230:8080/pty",
changeOrigin: true,
pathRewrite: {
"^/pty": ""
}
},
"/WebReport": {
target: "http://59.110.141.230:8082/WebReport",
changeOrigin: true,
pathRewrite: {
"^/WebReport": ""
}
},
"/PageOffice/*": {
target: "http://192.168.61.120:8081",
changeOrigin: true,
/* pathRewrite: {
"/PageOffice": "/"
} */
pathRewrite: {"/PageOffice":""}
},
},