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