可以正常访问后端api

This commit is contained in:
2025-09-19 16:17:33 +08:00
parent 3e13b4f7b0
commit 9d4581a2b5
3 changed files with 12 additions and 4 deletions

View File

@@ -46,7 +46,14 @@ module.exports = (env, argv) => {
hot: true,
open: true,
historyApiFallback: true,
port: 8080
port: 8080,
proxy: {
'/api': {
target: 'http://localhost:8086',
changeOrigin: true,
secure: false
}
}
},
resolve: {
alias: {