the requested address http://www.weather.com.cn/data/cityinfo/101010100.html
is where I wrote it wrong? Prompt GET http://localhost:8080/api/cityinfo/101010100.html 404 (Not Found)
assetsSubDirectory: "static",
assetsPublicPath: "/",
proxyTable: {
"/api": {
target: "http://www.weather.com.cn/data",
changeOrigin:true,
pathRewrite:{
"^/api":""
}
}
},
methods: {
weather () {
this.$http.get("/cityinfo/101010100.html").then(res => {
console.log(res)
})
}
}