From 9f95018a6124b226d452394be14e463d143c7107 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 28 Nov 2024 15:29:52 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20tab=E6=94=AF=E6=8C=81=E5=9B=BE?= =?UTF-8?q?=E5=B1=82=E4=BE=A7=E6=8B=96=E6=8B=BD=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard-style/SeniorStyleSetting.vue | 4 ++-- .../src/components/data-visualization/RealTimeTab.vue | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) 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()