fix(测试计划): 优化测试计划table拖拽排序报错

This commit is contained in:
xinxin.wu 2024-06-21 15:44:41 +08:00 committed by Craftsman
parent ccb6b42143
commit d2c2096da8
2 changed files with 6 additions and 1 deletions

View File

@ -663,8 +663,10 @@
}
params.targetId = newDragData[targetIndex]?.id ?? newDragData[newIndex]?.id;
if (params.targetId !== params.moveId) {
emit('dragChange', params);
}
}
};
// input

View File

@ -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);
}
}