mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 07:30:12 +01:00
🐛 锁定没有打开的页签后,点击关闭当前页签
This commit is contained in:
parent
1230f1fb65
commit
e078a88733
1 changed files with 1 additions and 1 deletions
|
|
@ -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", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue