This commit is contained in:
Vanessa 2023-08-25 15:47:47 +08:00
parent 67082df105
commit 69f5e75fd1
2 changed files with 80 additions and 43 deletions

View file

@ -598,12 +598,14 @@ export const zoomOut = (options: {
data: getResponse,
protyle: options.protyle,
action: options.id === options.protyle.block.rootID ? [Constants.CB_GET_FOCUS, Constants.CB_GET_HTML] : [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS, Constants.CB_GET_HTML],
afterCB: options.callback
});
} else {
onGet({
data: getResponse,
protyle: options.protyle,
action: options.id === options.protyle.block.rootID ? [Constants.CB_GET_FOCUS, Constants.CB_GET_HTML, Constants.CB_GET_UNUNDO] : [Constants.CB_GET_ALL, Constants.CB_GET_FOCUS, Constants.CB_GET_UNUNDO, Constants.CB_GET_HTML],
afterCB: options.callback
});
}
// https://github.com/siyuan-note/siyuan/issues/4874
@ -643,9 +645,6 @@ export const zoomOut = (options: {
updateBacklinkGraph(allModels, options.protyle);
}
/// #endif
if (options.callback) {
options.callback();
}
});
};