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 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 3e9b200bb8898c3e791fd84c3f8dafe2063ae6b8 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