Kaynağa Gözat

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

wjj 1 gün önce
ebeveyn
işleme
8622cb386d

+ 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 => {