mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 18:03:07 +08:00
This commit is contained in:
parent
cdc8206968
commit
602a37c72a
@ -1026,6 +1026,18 @@ export const zoomOut = (options: {
|
|||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
resizeObserver.disconnect();
|
resizeObserver.disconnect();
|
||||||
}, 1000 * 3);
|
}, 1000 * 3);
|
||||||
|
} else if (!options.focusId) {
|
||||||
|
fetchPost("/api/filetree/getDoc", {
|
||||||
|
id: options.protyle.block.rootID,
|
||||||
|
size: window.siyuan.config.editor.dynamicLoadBlocks,
|
||||||
|
}, getFocusResponse => {
|
||||||
|
onGet({
|
||||||
|
data: getFocusResponse,
|
||||||
|
protyle: options.protyle,
|
||||||
|
action: options.isPushBack ? [Constants.CB_GET_FOCUS] : [Constants.CB_GET_FOCUS, Constants.CB_GET_UNUNDO],
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return;
|
||||||
} else if (options.id === options.protyle.block.rootID) { // 聚焦返回后,该块是动态加载的,但是没加载出来
|
} else if (options.id === options.protyle.block.rootID) { // 聚焦返回后,该块是动态加载的,但是没加载出来
|
||||||
fetchPost("/api/filetree/getDoc", {
|
fetchPost("/api/filetree/getDoc", {
|
||||||
id: options.focusId,
|
id: options.focusId,
|
||||||
|
Loading…
Reference in New Issue
Block a user