mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 06:24:06 +01:00
🚨
This commit is contained in:
parent
813bd27fb3
commit
b6090f1bf3
5 changed files with 17 additions and 18 deletions
|
|
@ -25,13 +25,13 @@ export const switchTabById = (id: string) => {
|
|||
} else if (tab.model instanceof Editor) {
|
||||
if (tab.model.editor.protyle.block.rootID === id) {
|
||||
tab.parent.switchTab(tab.headElement);
|
||||
return true
|
||||
return true;
|
||||
}
|
||||
} else if (tab.model instanceof Asset) {
|
||||
if (tab.model.path === id) {
|
||||
tab.parent.switchTab(tab.headElement);
|
||||
return true
|
||||
return true;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue