[skip ci] Update index.js

This commit is contained in:
Xwite
2024-10-10 15:12:41 +08:00
committed by GitHub
parent 19e37aec81
commit 79cc4f788e

View File

@@ -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