mirror of
https://github.com/PlayEdu/backend
synced 2025-06-22 19:22:49 +08:00
先上课编辑添加课时顺序优化
This commit is contained in:
parent
697315e7ae
commit
728c2d5fd0
@ -109,7 +109,7 @@ export const CourseHourUpdate: React.FC<PropInterface> = ({
|
||||
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<PropInterface> = ({
|
||||
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user