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(); const models = getAllModels();
updateOutline(models, protyle, reload); updateOutline(models, protyle, reload);
updateBacklinkGraph(models, protyle); updateBacklinkGraph(models, protyle);
setTitle(title, protyle); setTitle(title);
}; };
export const isCurrentEditor = (blockId: string) => { export const isCurrentEditor = (blockId: string) => {

View File

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

View File

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