🐛 删除已打开页签报错

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

@ -34,7 +34,7 @@ export const lockFile = (id: string) => {
/// #if !MOBILE
getAllModels().editor.find((item) => {
if (item.editor.protyle.block.rootID === id) {
item.parent.parent.removeTab(item.parent.id);
item.parent.parent.removeTab(item.parent.id, false, false);
return true;
}
});