Browse Source

Update teamBaseInfo.vue

王新雷 4 years ago
parent
commit
265c35f448
1 changed files with 2 additions and 1 deletions
  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];