|
@@ -96,13 +96,21 @@ export default defineComponent({
|
|
|
}
|
|
|
// 去课件播放
|
|
|
const gotoPlay = (item: any) => {
|
|
|
- router.push({
|
|
|
- path: '/coursewarePlay',
|
|
|
- query: {
|
|
|
- id: item.lessonCoursewareDetailId,
|
|
|
- source: 'my-course'
|
|
|
+ postMessage({
|
|
|
+ api: 'openWebView',
|
|
|
+ content: {
|
|
|
+ url: `${location.origin}${location.pathname}/#/coursewarePlay?id=${item.lessonCoursewareDetailId}`,
|
|
|
+ orientation: 0,
|
|
|
+ isHideTitle: true
|
|
|
}
|
|
|
})
|
|
|
+ // router.push({
|
|
|
+ // path: '/coursewarePlay',
|
|
|
+ // query: {
|
|
|
+ // id: item.lessonCoursewareDetailId,
|
|
|
+ // source: 'my-course'
|
|
|
+ // }
|
|
|
+ // })
|
|
|
}
|
|
|
// 检查数据的缓存状态
|
|
|
const checkCoursewareCache = (list: []) => {
|