I have set up multiple domains across domains in package.json
"proxy": {
"/api": {
"target": "http://***.**.**.**:1000",
"changeOrigin": true
},
"/api/v1": {
"target": "http://***.**.**.**:81",
"changeOrigin": true
}
},
so how do I use these two? try to use the
interface: http://*...:1000/api/jtb/appointment/agro
axios.post("/api/api/jtb/appointment/agro", { data})
.then()
this interface reported an error (404). But what I wrote in this way is correct
.axios.post("/api/jtb/appointment/agro", { data})