线上课添加、编辑优化

This commit is contained in:
禺狨 2023-03-21 11:30:25 +08:00
parent 2a37fa6321
commit f6f3fb0259
2 changed files with 8 additions and 4 deletions

View File

@ -527,7 +527,9 @@ export const CourseCreate: React.FC<PropInterface> = ({ open, onCancel }) => {
</Form.Item>
<div className={styles["hous-box"]}>
{treeData.length === 0 && (
<span className={styles["no-hours"]}></span>
<span className={styles["no-hours"]}>
</span>
)}
{treeData.length > 0 && (
<TreeHours
@ -581,7 +583,7 @@ export const CourseCreate: React.FC<PropInterface> = ({ open, onCancel }) => {
<div className={styles["chapter-hous-box"]}>
{item.hours.length === 0 && (
<span className={styles["no-hours"]}>
</span>
)}
{item.hours.length > 0 && (

View File

@ -640,7 +640,9 @@ export const CourseUpdate: React.FC<PropInterface> = ({
</Form.Item>
<div className={styles["hous-box"]}>
{treeData.length === 0 && (
<span className={styles["no-hours"]}></span>
<span className={styles["no-hours"]}>
</span>
)}
{treeData.length > 0 && (
<TreeHours
@ -694,7 +696,7 @@ export const CourseUpdate: React.FC<PropInterface> = ({
<div className={styles["chapter-hous-box"]}>
{item.hours.length === 0 && (
<span className={styles["no-hours"]}>
</span>
)}
{item.hours.length > 0 && (