From 8918e5a1ad8656a0fb7fac67b7a223b4c91db3ea Mon Sep 17 00:00:00 2001 From: hackrobot Date: Thu, 11 Apr 2024 08:51:35 +0800 Subject: [PATCH] ewgw --- config/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 } }, };