可以正常访问后端api
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user