From fc98cbd30c877fc1f8828f5b36c72721267e94e5 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 8 Mar 2026 15:57:22 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/pull/17152 --- app/src/config/bazaar.ts | 13 +++++++------ app/src/util/noRelyPCFunction.ts | 3 +-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/src/config/bazaar.ts b/app/src/config/bazaar.ts index 9f2c3c108..73915f4cb 100644 --- a/app/src/config/bazaar.ts +++ b/app/src/config/bazaar.ts @@ -697,10 +697,13 @@ type="checkbox"> repoHash: dataObj.repoHash, mode: dataObj.themeMode === "dark" ? 1 : 0, frontend: getFrontend() - }, async response => { + }, response => { bazaar._onBazaar(response, bazaarType); + if (response.code !== 0) { + return; + } bazaar._genMyHTML(bazaarType, app, false); - if (response.code === 0 && bazaarType === "plugins") { + if (bazaarType === "plugins") { if (window.siyuan.config.bazaar.petalDisabled) { confirmDialog(window.siyuan.languages.confirm, window.siyuan.languages.enablePluginTip2); } else { @@ -716,8 +719,6 @@ type="checkbox"> }); }); } - } else if (response.code === 1) { - showMessage(response.msg); } }); } @@ -759,7 +760,7 @@ type="checkbox"> repoHash: dataObj.repoHash, mode: dataObj.themeMode === "dark" ? 1 : 0, frontend: getFrontend() - }, async response => { + }, response => { this._genMyHTML(bazaarType, app); bazaar._onBazaar(response, bazaarType); }); @@ -822,7 +823,7 @@ type="checkbox"> modeOS: false, themeDark: mode === 1 ? packageName : window.siyuan.config.appearance.themeDark, themeLight: mode === 0 ? packageName : window.siyuan.config.appearance.themeLight, - }), async (appearanceResponse) => { + }), (appearanceResponse) => { this._genMyHTML("themes", app, false); fetchPost("/api/bazaar/getBazaarTheme", {}, response => { response.data.appearance = appearanceResponse.data; diff --git a/app/src/util/noRelyPCFunction.ts b/app/src/util/noRelyPCFunction.ts index e2a178825..c904e521b 100644 --- a/app/src/util/noRelyPCFunction.ts +++ b/app/src/util/noRelyPCFunction.ts @@ -19,8 +19,7 @@ export const renameTag = (labelName: string) => { title: window.siyuan.languages.rename, content: `
-
+