王新雷 пре 4 година
родитељ
комит
265c35f448
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      src/views/teamBuild/components/teamBaseInfo.vue

+ 2 - 1
src/views/teamBuild/components/teamBaseInfo.vue

@@ -859,7 +859,8 @@ export default {
               : null;
             // 课程组成形式
             this.checkList;
-            let list = JSON.parse(res.data.musicGroup.courseForm);
+            // 判断课程是否为空
+            let list = res.data.musicGroup.courseForm ? JSON.parse(res.data.musicGroup.courseForm) : {};
             for (let i in this.checkList) {
               if (list[i] && !list[i].isNew) {
                 this.checkList[i] = list[i];