|
|
|
@ -17,14 +17,13 @@ import VideoJS from '../components/VideoJS';
|
|
|
|
|
const { Paragraph } = Typography;
|
|
|
|
|
|
|
|
|
|
const CardList = () => {
|
|
|
|
|
|
|
|
|
|
const params = useParams();
|
|
|
|
|
const ids = params.msg.split(',');//chapter_id,course_id,subject_id
|
|
|
|
|
const [currentLearning, SetCurrentLearning] = useState();
|
|
|
|
|
const [courseId, SetCourseId] = useState();
|
|
|
|
|
const [courseId, SetCourseId] = useState(ids[1]);
|
|
|
|
|
let time=0;
|
|
|
|
|
const videoRef = useRef<HTMLVideoElement>(null);
|
|
|
|
|
const params = useParams();
|
|
|
|
|
const ids = params.msg.split(',');//chapter_id,course_id,subject_id
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log('courseIdcourseIdcourseIdcourseId',courseId)
|
|
|
|
|
/** 获取课节 */
|
|
|
|
@ -139,7 +138,8 @@ const CardList = () => {
|
|
|
|
|
<Col span={6} style={{paddingRight:24}}>
|
|
|
|
|
<Menu
|
|
|
|
|
mode="inline"
|
|
|
|
|
selectedKeys={[ids[1].toString()]}
|
|
|
|
|
// selectedKeys={[ids[1].toString()]}
|
|
|
|
|
selectedKeys={[courseId.toString()]}
|
|
|
|
|
defaultOpenKeys={['sub1']}
|
|
|
|
|
style={{ height: '100%', width:'100%' }}
|
|
|
|
|
>
|
|
|
|
|