diff --git a/.env.development b/.env.development index 53376642..97d27da0 100644 --- a/.env.development +++ b/.env.development @@ -29,7 +29,7 @@ VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' # VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601' VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602' -# VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605' +VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605' # 王洋洋 diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue index 5e086c21..bb03afa6 100644 --- a/src/pages/course/study.vue +++ b/src/pages/course/study.vue @@ -215,7 +215,7 @@ voiceObj: null })) if(isPreview.value){ - resStartStudyNow() + resStartStudyNow(body.teacheList) }else{ if (body.stdyProgressFlag === 'N') { step.value = 1 @@ -248,7 +248,7 @@ step.value = 2 } else { // 重新学习 - resStartStudyNow() + resStartStudyNow(body.teacheList) } }).finally(() => {}) } @@ -260,20 +260,21 @@ } }; // 重新学习 - const resStartStudyNow = () => { + const resStartStudyNow = ($list = []) => { let _ajax = isPreview.value ? previewAfreshStudyCourse : afreshStudyCourseApi + console.log(_ajax) _ajax({ crsId: crsId.value, }).then(res => { step.value = 1 - teacherList.value = body.teacheList.map(t => ({ + teacherList.value = $list.map(t => ({ ...t, voicePath: '', voiceObj: null })) - }).catch(t => { + }).catch(e => { step.value = 1 - teacherList.value = body.teacheList.map(t => ({ + teacherList.value = $list.map(t => ({ ...t, voicePath: '', voiceObj: null diff --git a/src/pages/courseDetail/components/knowledge.vue b/src/pages/courseDetail/components/knowledge.vue index 8c655742..747ccca2 100644 --- a/src/pages/courseDetail/components/knowledge.vue +++ b/src/pages/courseDetail/components/knowledge.vue @@ -14,7 +14,7 @@ - {{ item.pgrphContent }} + {{ item.pgrphTitle || item.pgrphContent }}