소스 검색

修复课程关联拍商品,删除无法保存问题

wjj 1 일 전
부모
커밋
8622cb386d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/views/components/course/userCourseCatalogDetails.vue

+ 1 - 1
src/views/components/course/userCourseCatalogDetails.vue

@@ -804,7 +804,7 @@ export default {
             this.form.packageJson = JSON.stringify(this.packageList);
           }
           if (this.form.courseProducts != null) {
-            this.form.productId = this.form.courseProducts[0].id
+            this.form.productId = this.form.courseProducts.map(item => item.id).join(',');
           }
           if (this.form.videoId != null) {
             updateUserCourseVideo(this.form).then(response => {