Explorar o código

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

wjj hai 1 día
pai
achega
8622cb386d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 => {