Vanessa 2025-11-17 21:35:15 +08:00
parent 72ed9c37f8
commit f293fa5d26
3 changed files with 18 additions and 20 deletions

View file

@ -617,7 +617,7 @@ export const updateOutline = (models: IModels, protyle: IProtyle, reload = false
item.isPreview = !protyle.preview.element.classList.contains("fn__none");
item.update(response, blockId);
if (protyle) {
item.updateDocTitle(protyle.background.ial, response.data?.length);
item.updateDocTitle(protyle.background.ial, response.data?.length || 0);
if (getSelection().rangeCount > 0) {
const startContainer = getSelection().getRangeAt(0).startContainer;
if (protyle.wysiwyg.element.contains(startContainer)) {