I"m going to send a cross-domain request. I also wrote the proxy service, but I made a mistake. Ask the boss to take a look at
this is the interface address: http://47.93.48.135:8086/api/slide?slide_id=1
. This is my request
getLiveList () {
this.$http.get("/api/slide?slide_id=1")
.then((res) => {
console.log(res)
})
.catch((err) => {
console.log(err)
})
}
this is configuring the proxy service
"/ api": {
target: "http://47.93.48.135:8086/",
changeOrigin: true,
pathRewrite: {
"^/api": ""
}
}
but the following report is wrong