Cross-domain request path error occurred after packaging
where should I set the path?
config/index Code:
dev: {
// Paths
assetsSubDirectory: "static",
assetsPublicPath: "./",
proxyTable: {
"/api":{
target:"https://www.qqbsmall.com",
changeOrigin:true,
pathRewrite:{
"^/api":""
}
}},
build: {
// Template for index.html
index: path.resolve(__dirname, "../dist/index.html"),
// Paths
assetsRoot: path.resolve(__dirname, "../dist"),
assetsSubDirectory: "static",
assetsPublicPath: "./",