mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-30 13:28:48 +01:00
🐛 split tab
This commit is contained in:
parent
fb007a61c0
commit
49c5e3be9d
1 changed files with 2 additions and 2 deletions
|
|
@ -637,14 +637,14 @@ export const copyTab = (app: App, tab: Tab) => {
|
|||
const custom = tab.model as Custom;
|
||||
if (custom.type === "siyuan-card") {
|
||||
model = newCardModel({
|
||||
tab,
|
||||
tab: newTab,
|
||||
data: custom.data
|
||||
});
|
||||
} else {
|
||||
app.plugins.find(item => {
|
||||
if (item.models[custom.type]) {
|
||||
model = item.models[custom.type]({
|
||||
tab,
|
||||
tab: newTab,
|
||||
data: custom.data
|
||||
});
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue