소스 검색

fix:课程删除疗法

ct 1 개월 전
부모
커밋
7e28ba43ec
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/views/components/course/userCourseCatalogDetails.vue

+ 3 - 0
src/views/components/course/userCourseCatalogDetails.vue

@@ -1043,6 +1043,9 @@ export default {
           if (this.packageList.length > 0) {
             this.form.packageJson = JSON.stringify(this.packageList);
             this.form.showTreatment = 0;
+          } else {
+            this.form.packageJson = "[]";
+            this.form.showTreatment = 1;
           }
           if (this.form.courseProducts != null) {
             this.form.productId = this.form.courseProducts.map(item => item.id).join(',');