diff --git a/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/SeniorStyleSetting.vue b/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/SeniorStyleSetting.vue index 03f0835348..2624d14de5 100644 --- a/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/SeniorStyleSetting.vue +++ b/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/SeniorStyleSetting.vue @@ -13,7 +13,7 @@ { const dragOnEnd = ({ oldIndex, newIndex }) => { const source = componentData.value[newIndex] - const comLength = componentData.value.length - // 还原数组 - componentData.value.splice(newIndex, 1) - componentData.value.splice(oldIndex, 0, source) - const target = componentData.value[comLength - 1 - oldIndex] - // 反向移动数组 - componentData.value.splice(comLength - 1 - oldIndex, 1) - componentData.value.splice(comLength - 1 - newIndex, 0, target) dvMainStore.setCurTabName(source.title) eventBus.emit('onTabSortChange-' + tabElement.value?.id) snapshotStore.recordSnapshotCache()