mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
This commit is contained in:
parent
2c7a58d3b9
commit
7d41575c2f
5 changed files with 18 additions and 7 deletions
|
|
@ -491,8 +491,19 @@ export const bazaar = {
|
|||
});
|
||||
return;
|
||||
}
|
||||
bazaar._genMyHTML(bazaarType, app);
|
||||
bazaar._onBazaar(response, bazaarType, ["themes", "icons"].includes(bazaarType));
|
||||
bazaar._genMyHTML(bazaarType, app);
|
||||
if (bazaarType === "plugins") {
|
||||
confirmDialog(window.siyuan.languages.confirm, window.siyuan.languages.enablePluginTip, () => {
|
||||
fetchPost("/api/petal/setPetalEnabled", {
|
||||
packageName: dataObj.name,
|
||||
enabled: true,
|
||||
}, (response) => {
|
||||
loadPlugin(app, response.data);
|
||||
bazaar._genMyHTML(bazaarType, app);
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue