feat: 本地调试代码
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user