diff --git a/src/pages/course/compenents/create.tsx b/src/pages/course/compenents/create.tsx index 977e1f0..5811d70 100644 --- a/src/pages/course/compenents/create.tsx +++ b/src/pages/course/compenents/create.tsx @@ -527,7 +527,9 @@ export const CourseCreate: React.FC = ({ open, onCancel }) => {
{treeData.length === 0 && ( - 请添加课时内容 + + 请点击上方按钮添加课时 + )} {treeData.length > 0 && ( = ({ open, onCancel }) => {
{item.hours.length === 0 && ( - 请添加课时内容 + 请点击上方按钮添加课时 )} {item.hours.length > 0 && ( diff --git a/src/pages/course/compenents/update.tsx b/src/pages/course/compenents/update.tsx index 66a60f1..f8ab52b 100644 --- a/src/pages/course/compenents/update.tsx +++ b/src/pages/course/compenents/update.tsx @@ -640,7 +640,9 @@ export const CourseUpdate: React.FC = ({
{treeData.length === 0 && ( - 请添加课时内容 + + 请点击上方按钮添加课时 + )} {treeData.length > 0 && ( = ({
{item.hours.length === 0 && ( - 请添加课时内容 + 请点击上方按钮添加课时 )} {item.hours.length > 0 && (