mpvue+iview weapp developer Mini Program, configure proxyTable
proxyTable: {
"/api": {
target: "https://xxxxx/api",
changeOrigin: true,
secure: false,
pathRewrite: {
"^/api": ""
}
}
},
where the request is encapsulated
fly.config.baseURL ="/ api"
but the request will report an error