🐛 删除已打开页签报错

This commit is contained in:
Vanessa 2022-08-10 11:24:12 +08:00
parent c358f8f8ee
commit 5acdc1f3c7
4 changed files with 9 additions and 9 deletions

View file

@ -21,7 +21,7 @@ export const onGet = (data: IWebSocketData, protyle: IProtyle, action: string[]
if (data.code === 1) {
// 其他报错
if (protyle.model) {
protyle.model.parent.parent.removeTab(protyle.model.parent.id);
protyle.model.parent.parent.removeTab(protyle.model.parent.id, false, false);
} else {
protyle.element.innerHTML = `<div class="ft__smaller ft__secondary b3-form__space--small" contenteditable="false">${window.siyuan.languages.refExpired}</div>`;
}