From 728c2d5fd0252cac1dbd2ed5bfba449dacbc9fb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Mon, 3 Jul 2023 16:39:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=88=E4=B8=8A=E8=AF=BE=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=BE=E6=97=B6=E9=A1=BA=E5=BA=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/compenents/hour-update.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/course/compenents/hour-update.tsx b/src/pages/course/compenents/hour-update.tsx index cf7529f..14d5f33 100644 --- a/src/pages/course/compenents/hour-update.tsx +++ b/src/pages/course/compenents/hour-update.tsx @@ -109,7 +109,7 @@ export const CourseHourUpdate: React.FC = ({ if (videos[i].disabled === false) { hours.push({ chapter_id: 0, - sort: i, + sort: treeData.length + i, title: videos[i].name, type: videos[i].type, duration: videos[i].duration, @@ -144,7 +144,7 @@ export const CourseHourUpdate: React.FC = ({ if (videos[i].disabled === false) { hours.push({ chapter_id: data[addvideoCurrent].id, - sort: i, + sort: data[addvideoCurrent].hours.length + i, title: videos[i].name, type: videos[i].type, duration: videos[i].duration,