🐛 锁定没有打开的页签后,点击关闭当前页签

This commit is contained in:
Vanessa 2022-07-08 00:26:38 +08:00
parent 1230f1fb65
commit e078a88733

View file

@ -35,10 +35,10 @@ export const lockFile = (id: string) => {
getAllModels().editor.find((item) => {
if (item.editor.protyle.block.rootID === id) {
item.parent.parent.removeTab(item.parent.id);
logElement.remove();
return true;
}
});
logElement.remove();
/// #endif
});
logElement.querySelector(".b3-button--text").addEventListener("click", () => {