♻️ context

This commit is contained in:
Vanessa 2022-08-07 09:26:08 +08:00
parent 3ef5731cb9
commit 65821e57de
22 changed files with 50 additions and 45 deletions

View file

@ -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);