problem description
I created the vue.config.js file
in the root directory and made related settings
module.exports = {
productionSourceMap: false,
devServer: {
//
proxy: {
"/v1": {
target: "http://192.168.31.131:8080/", //
ws: true, // websockets
changOrigin: true,
pathRequiresRewrite: {
"^/v1": "/"
}
}
}
}
}
the environmental background of the problems and what methods you have tried
the request path has not changed.
related codes
axios.get("/v1/config/dict/listDictNoRoot/CREATECLASSES").then(
response => {
let res_data = response.data
console.log("res_data",res_data)
}
)
how can I agent to my target domain name