This commit is contained in:
Vanessa 2023-01-16 23:06:55 +08:00
parent 235f8f8a6a
commit a403eb8b04
3 changed files with 3 additions and 3 deletions

View file

@ -357,7 +357,7 @@ export const updatePanelByEditor = (protyle?: IProtyle, focus = true, pushBackSt
const models = getAllModels();
updateOutline(models, protyle, reload);
updateBacklinkGraph(models, protyle);
setTitle(title, protyle);
setTitle(title);
};
export const isCurrentEditor = (blockId: string) => {

View file

@ -282,7 +282,7 @@ export class Title {
title: fileName,
});
this.setTitle(fileName);
setTitle(fileName, protyle);
setTitle(fileName);
}, Constants.TIMEOUT_INPUT);
}

View file

@ -121,7 +121,7 @@ export const onGet = (data: IWebSocketData, protyle: IProtyle, action: string[]
unScroll: (scrollObj && scrollObj.focusId) ? true : false,
isSyncing: data.data.isSyncing,
}, protyle);
setTitle(response.data.ial.title, protyle);
setTitle(response.data.ial.title);
if (scrollObj && protyle.options.mode !== "preview") {
restoreScroll(protyle, scrollObj);
}