Просмотр исходного кода

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

wjj 1 день назад
Родитель
Сommit
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 => {