From 293fa3df4238a75010431a92cc8a3e16f3f6f72a Mon Sep 17 00:00:00 2001 From: plightfield <1207120484@qq.com> Date: Wed, 25 Sep 2024 14:30:42 +0800 Subject: [PATCH] change --- src/layout/dock/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/layout/dock/index.tsx b/src/layout/dock/index.tsx index 560baf8..89fd047 100644 --- a/src/layout/dock/index.tsx +++ b/src/layout/dock/index.tsx @@ -30,6 +30,7 @@ export default defineComponent(() => { const oldIdx = layout.currentPage.list.findIndex((el) => el.id === dragging.id) if (oldIdx < 0) return const block = layout.currentPage.list[oldIdx] + if (!block) return layout.state.dock[i] = block layout.currentPage.list.splice(oldIdx, 1) return