use the vue project configuration agent built by webpack4.0 to request an error 404 for an answer
proxy: {
"/apis": {
target: "http://47.94.232.95:8777/Api", //
ws: true, // websockets
changOrigin: true, //:
pathRequiresRewrite: {
"^/apis": ""
}
}
}
above is the config.js configuration information
return request ({
url: "/apis/Dictionary/List",
method: "post",
data: data
})
url is the request path