wip: coding

This commit is contained in:
kailong321200875
2022-06-23 22:37:49 +08:00
parent cf738b8701
commit f4c940d95e
15 changed files with 202 additions and 27 deletions

View File

@@ -119,11 +119,11 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
port: 4000,
proxy: {
// 选项写法
// '/api': {
// target: 'http://localhost:3000',
// changeOrigin: true,
// rewrite: path => path.replace(/^\/api/, '')
// }
'/api': {
target: 'http://127.0.0.1:8000',
changeOrigin: true,
rewrite: path => path.replace(/^\/api/, '')
}
},
hmr: {
overlay: false