Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: split tab

Vanessa49c5e3be9d95
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index 47d89d05a0..bd4572280e 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -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;