This commit is contained in:
plightfield 2024-09-25 14:30:42 +08:00
parent 550993cce5
commit 293fa3df42
1 changed files with 1 additions and 0 deletions

View File

@ -30,6 +30,7 @@ export default defineComponent(() => {
const oldIdx = layout.currentPage.list.findIndex((el) => el.id === dragging.id) const oldIdx = layout.currentPage.list.findIndex((el) => el.id === dragging.id)
if (oldIdx < 0) return if (oldIdx < 0) return
const block = layout.currentPage.list[oldIdx] const block = layout.currentPage.list[oldIdx]
if (!block) return
layout.state.dock[i] = block layout.state.dock[i] = block
layout.currentPage.list.splice(oldIdx, 1) layout.currentPage.list.splice(oldIdx, 1)
return return