mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-06 21:00:16 +01:00
♻️ context
This commit is contained in:
parent
3ef5731cb9
commit
65821e57de
22 changed files with 50 additions and 45 deletions
|
|
@ -198,7 +198,7 @@ const switchEditor = (editor: Editor, options: IOpenFileOptions, allModels: IMod
|
|||
if ((!nodeElement || nodeElement?.clientHeight === 0) && options.id !== options.rootID) {
|
||||
fetchPost("/api/filetree/getDoc", {
|
||||
id: options.id,
|
||||
mode: (options.action && !options.action.includes(Constants.CB_GET_ALL)) ? 3 : 0,
|
||||
mode: (options.action && options.action.includes(Constants.CB_GET_CONTEXT)) ? 3 : 0,
|
||||
size: Constants.SIZE_GET,
|
||||
}, getResponse => {
|
||||
onGet(getResponse, editor.editor.protyle, options.action);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue