feat: 本地调试代码

This commit is contained in:
hackrobot
2024-04-06 18:28:40 +08:00
parent bb4a4373b7
commit 984fa6f990
24 changed files with 13 additions and 226 deletions

View File

@@ -73,17 +73,17 @@ const config = {
// defineConstants: {
// HOST: '"/api"'
// },
// devServer: {
// proxy: {
// '/api/': {
// target: JSON.parse('"http://localhost:8082"'),
// pathRewrite: {
// '^/api/': '/'
// },
// changeOrigin: true
// }
// }
// }
devServer: {
proxy: {
'/api/': {
target: JSON.parse('"http://localhost:8055"'), //本地调试端口
pathRewrite: {
'^/api/': '/'
},
changeOrigin: true
}
}
}
},
};