mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 11:50:15 +01:00
This commit is contained in:
parent
67082df105
commit
69f5e75fd1
2 changed files with 80 additions and 43 deletions
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue