获取 json 布局不应保存 scroll

This commit is contained in:
Vanessa 2023-12-31 16:51:31 +08:00
parent 45bfec7d2f
commit ac269b4e1b
16 changed files with 74 additions and 83 deletions

View file

@ -626,8 +626,9 @@ export const bazaar = {
}, response => {
if (window.siyuan.config.appearance.themeJS && bazaarType === "themes") {
exportLayout({
reload: true,
onlyData: false,
cb() {
window.location.reload();
},
errorExit: false,
});
return;
@ -686,8 +687,9 @@ export const bazaar = {
)) {
if (window.siyuan.config.appearance.themeJS) {
exportLayout({
reload: true,
onlyData: false,
cb() {
window.location.reload();
},
errorExit: false,
});
} else {
@ -763,8 +765,9 @@ export const bazaar = {
(mode === 0 && window.siyuan.config.appearance.themeLight !== packageName)) &&
window.siyuan.config.appearance.themeJS) {
exportLayout({
reload: true,
onlyData: false,
cb() {
window.location.reload();
},
errorExit: false,
});
} else {