fix(测试计划): 优化测试计划table拖拽排序报错
This commit is contained in:
parent
ccb6b42143
commit
d2c2096da8
|
@ -663,7 +663,9 @@
|
|||
}
|
||||
params.targetId = newDragData[targetIndex]?.id ?? newDragData[newIndex]?.id;
|
||||
|
||||
emit('dragChange', params);
|
||||
if (params.targetId !== params.moveId) {
|
||||
emit('dragChange', params);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue