Vanessa 2022-12-24 11:57:03 +08:00
parent c37ccb741e
commit a20a338e6d
3 changed files with 8 additions and 1 deletions

View file

@ -169,6 +169,7 @@ export class Protyle {
fetchPost("/api/filetree/getDoc", {
id: options.blockId,
k: options.key || "",
isBacklink: mergedOptions.action.includes(Constants.CB_GET_BACKLINK),
mode: (mergedOptions.action && mergedOptions.action.includes(Constants.CB_GET_CONTEXT)) ? 3 : 0, // 0: 仅当前 ID默认值1向上 2向下3上下都加载4加载最后
size: mergedOptions.action?.includes(Constants.CB_GET_ALL) ? Constants.SIZE_GET_MAX : window.siyuan.config.editor.dynamicLoadBlocks,
}, getResponse => {