diff --git a/project/qujing/app/AppCurriculumManage/components/Add.vue b/project/qujing/app/AppCurriculumManage/components/Add.vue index be194674..5448af5a 100644 --- a/project/qujing/app/AppCurriculumManage/components/Add.vue +++ b/project/qujing/app/AppCurriculumManage/components/Add.vue @@ -219,8 +219,8 @@ export default { this.isLoading = true this.instance.post(`/app/appcourseinfo/addOrUpdate`, { ...this.form, - videoUrl: this.form.courseType === '1' ? this.form.videoUrl[0].url : '', - pictureUrl: this.form.pictureUrl.length ? this.form.pictureUrl[0].url : '' + videoUrl: this.form.courseType === '1' ? this.form.videoUrl[0]?.url : '', + pictureUrl: this.form.pictureUrl.length ? this.form.pictureUrl[0]?.url : '' }).then(res => { if (res.code == 0) { this.$message.success('提亀成功')