mirror of
https://github.com/PlayEdu/backend
synced 2025-06-23 13:12:50 +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) {
|
if (videos[i].disabled === false) {
|
||||||
hours.push({
|
hours.push({
|
||||||
chapter_id: 0,
|
chapter_id: 0,
|
||||||
sort: i,
|
sort: treeData.length + i,
|
||||||
title: videos[i].name,
|
title: videos[i].name,
|
||||||
type: videos[i].type,
|
type: videos[i].type,
|
||||||
duration: videos[i].duration,
|
duration: videos[i].duration,
|
||||||
@ -144,7 +144,7 @@ export const CourseHourUpdate: React.FC<PropInterface> = ({
|
|||||||
if (videos[i].disabled === false) {
|
if (videos[i].disabled === false) {
|
||||||
hours.push({
|
hours.push({
|
||||||
chapter_id: data[addvideoCurrent].id,
|
chapter_id: data[addvideoCurrent].id,
|
||||||
sort: i,
|
sort: data[addvideoCurrent].hours.length + i,
|
||||||
title: videos[i].name,
|
title: videos[i].name,
|
||||||
type: videos[i].type,
|
type: videos[i].type,
|
||||||
duration: videos[i].duration,
|
duration: videos[i].duration,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user