This commit is contained in:
Vanessa 2023-11-22 16:47:41 +08:00
parent 82a0932102
commit 72752f441a
4 changed files with 10 additions and 1 deletions

View file

@ -49,6 +49,7 @@ export const reloadSync = (app: App, data: { upsertRootIDs: string[], removeRoot
fetchPost("/api/block/getDocInfo", {
id: window.siyuan.mobile.editor.protyle.block.rootID
}, (response) => {
setTitle(response.data.name);
(document.getElementById("toolbarName") as HTMLInputElement).value = response.data.name === "Untitled" ? "" : response.data.name;
});
}