change
This commit is contained in:
parent
550993cce5
commit
293fa3df42
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue