From 79cc4f788ef865e870197311a4c46b844837bb9a Mon Sep 17 00:00:00 2001 From: Xwite <82232510+Xwite@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:12:41 +0800 Subject: [PATCH] [skip ci] Update index.js --- modules/web/src/api/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/web/src/api/index.js b/modules/web/src/api/index.js index 3a3f3b8f5c78..dc9d1e8a07c4 100644 --- a/modules/web/src/api/index.js +++ b/modules/web/src/api/index.js @@ -82,7 +82,7 @@ setLeagdoHttpUrl(ajax.defaults.baseURL); */ const testLeagdoHttpUrlConnection = async (http_url) => { const { data = {} } = await ajax.get("/getReadConfig", { - baseURL: new URL(http_url).toString(), + baseURL: http_url, timeout: 3000, }); // 返回结果应该是JSON 并有键值isSuccess