diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SmartEducation/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SmartEducation/single.vue index ca9d6ce18..e3ae2e87b 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SmartEducation/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SmartEducation/single.vue @@ -100,7 +100,11 @@ if(!res)return if(res.VideoPath){ this.form.VideoPath = res.VideoPath - this.path = this.API + '/learun/adms/annexes/wxdown?' + this.URL_QUERY(res.VideoPath, true) + let fileList = await this.convertToFormValue({type:'upload'},res.VideoPath) + if(fileList&&fileList.length){ + this.path = fileList[0].path + } + // this.path = this.API + '/learun/adms/annexes/wxdown?' + this.URL_QUERY(res.VideoPath, true) } this.detail = res } diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/practiceCourse/detail.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/practiceCourse/detail.vue index 43b0db40b..4cca213ad 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/practiceCourse/detail.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/practiceCourse/detail.vue @@ -41,7 +41,13 @@ async init(type,id){ let res = await this.HTTP_GET('learun/adms/smartEducation/smartSelfCourseInfo',id) if(!res)return - if(res.VideoPath)res.VideoPath = this.API + '/learun/adms/annexes/wxdown?' + this.URL_QUERY(res.VideoPath, true) + if(res.VideoPath){ + let fileList = await this.convertToFormValue({type:'upload'},res.VideoPath) + if(fileList&&fileList.length){ + res.VideoPath = fileList[0].path + } + } + // res.VideoPath = this.API + '/learun/adms/annexes/wxdown?' + this.URL_QUERY(res.VideoPath, true) this.form = res this.ready = true },