diff --git a/frontend/src/components/pure/ms-table/base-table.vue b/frontend/src/components/pure/ms-table/base-table.vue index 359b7956ec..bd3ecb8971 100644 --- a/frontend/src/components/pure/ms-table/base-table.vue +++ b/frontend/src/components/pure/ms-table/base-table.vue @@ -663,7 +663,9 @@ } params.targetId = newDragData[targetIndex]?.id ?? newDragData[newIndex]?.id; - emit('dragChange', params); + if (params.targetId !== params.moveId) { + emit('dragChange', params); + } } }; diff --git a/frontend/src/views/test-plan/testPlan/components/planTable.vue b/frontend/src/views/test-plan/testPlan/components/planTable.vue index 3c2a86916c..915714fb5b 100644 --- a/frontend/src/views/test-plan/testPlan/components/planTable.vue +++ b/frontend/src/views/test-plan/testPlan/components/planTable.vue @@ -1320,6 +1320,7 @@ // ζ‹–ζ‹½ζŽ’εΊ async function handleDragChange(params: DragSortParams) { + setLoading(true); try { await dragPlanOnGroup(params); Message.success(t('caseManagement.featureCase.sortSuccess')); @@ -1327,6 +1328,8 @@ } catch (error) { // eslint-disable-next-line no-console console.log(error); + } finally { + setLoading(false); } }