From f79fd976022df5fdb7e12dcf8b6f9585a2e5d21e 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 1/2] [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 3a3f3b8f5..dc9d1e8a0 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 From a44fa452315a894ea1d3a0449e3ace7b93d4a43d Mon Sep 17 00:00:00 2001 From: Xwite <82232510+Xwite@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:14:52 +0800 Subject: [PATCH 2/2] ci(web.yml): Update pnpm v9 Nodejs20 --- .github/workflows/web.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 1fa806c13..d5983d67b 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -25,13 +25,13 @@ jobs: - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - uses: pnpm/action-setup@v4 name: Install pnpm id: pnpm-install with: - version: 8 + version: 9 run_install: false - name: Get pnpm store directory