diff --git a/web/src/management/pages/edit/components/MaterialGroup.vue b/web/src/management/pages/edit/components/MaterialGroup.vue index cdf0d9e9..f59932ab 100644 --- a/web/src/management/pages/edit/components/MaterialGroup.vue +++ b/web/src/management/pages/edit/components/MaterialGroup.vue @@ -87,11 +87,17 @@ export default defineComponent({ } const checkEnd = ({ oldIndex, newIndex }) => { - emit('changeSeq', { - type: 'move', - index: oldIndex, - range: newIndex - oldIndex - }) + if (oldIndex !== newIndex) { + emit('changeSeq', { + type: 'move', + index: newIndex, + range: 0 + }) + + if (props.currentEditOne === oldIndex) { + emit('select', newIndex) + } + } } const instance = getCurrentInstance()