完善定时任务视图拖拽

This commit is contained in:
whyour
2022-09-03 12:39:47 +08:00
parent 4e389865b5
commit e31c2c0955
3 changed files with 23 additions and 4 deletions
+2 -2
View File
@@ -187,8 +187,8 @@ const ViewManageModal = ({
}
const dragRow = list[dragIndex];
request
.put(`${config.apiPrefix}envs/${dragRow.id}/move`, {
data: { fromIndex: dragIndex, toIndex: hoverIndex },
.put(`${config.apiPrefix}crons/views/move`, {
data: { fromIndex: dragIndex, toIndex: hoverIndex, id: dragRow.id },
})
.then((data: any) => {
if (data.code === 200) {