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