Skip to content

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

:bug: 拖拽 dock

Vanessaff16cd1bf9f9
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index 1e544e1dca..3d5584056c 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -82,6 +82,9 @@ const dockToJSON = (dock: Dock) => {
const subDockToJSON = (index: number) => {
const data: Config.IUILayoutDockTab[] = [];
dock.elements[index].querySelectorAll(".dock__item").forEach(item => {
+ if (!item.getAttribute("data-type")) {
+ return;
+ }
data.push({
type: item.getAttribute("data-type"),
size: {