Vanessa 2026-03-08 15:57:22 +08:00
parent c564905afa
commit fc98cbd30c
2 changed files with 8 additions and 8 deletions

View file

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

View file

@ -19,8 +19,7 @@ export const renameTag = (labelName: string) => {
title: window.siyuan.languages.rename,
content: `<div class="b3-dialog__content">
<input class="b3-text-field fn__block">
<div class="b3-list fn__flex-1 b3-list--background fn__none protyle-hint" style=" position: absolute;
width: calc(100% - 48px);">
<div class="b3-list fn__flex-1 b3-list--background fn__none protyle-hint" style="position: absolute;width: calc(100% - 48px);">
<img style="margin: 0 auto;display: block;width: 64px;height: 64px" src="/stage/loading-pure.svg">
</div>
</div>