This commit is contained in:
hackrobot
2024-04-11 08:51:35 +08:00
parent 16a1dfc7f2
commit 8918e5a1ad

View File

@@ -75,15 +75,15 @@ const config = {
devServer: { devServer: {
proxy: { proxy: {
'/api/': { '/api/': {
target: JSON.parse('"http://localhost:28369"'), //本地调试端口 // target: JSON.parse('"http://localhost:28369"'), //本地调试端口
// target: JSON.parse('"https://kunpeng.hackrobot.cn"'), target: JSON.parse('"https://kunpeng.hackrobot.cn"'),
pathRewrite: { pathRewrite: {
'^/api/': '/' '^/api/': '/'
}, },
changeOrigin: true changeOrigin: true
} }
} },
disableHostCheck: true
} }
}, },
}; };