mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 11:30:42 +08:00
🐛 split tab
This commit is contained in:
parent
fb007a61c0
commit
49c5e3be9d
@ -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…
Reference in New Issue
Block a user