qinzhipeng_v@didiglobal.com 4 年之前
父节点
当前提交
2fcb7c9916
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/views/ToConfigure/components/MemberDetails.vue

+ 6 - 2
src/views/ToConfigure/components/MemberDetails.vue

@@ -131,8 +131,12 @@ export default {
         this.titleName = this.type.name
         const res = await teamQueryTeamInfo({ teamId: this.type.code, pageSize: this.pageSize, curIndex: this.curIndex })
         if (res.code === 200) {
-          this.AllMember = res.data.teamLeaderRelateInfoResponseList.concat(res.data.teamMemberRelateInfoResponseList)
-          this.total = res.total
+          if (res.data.teamLeaderRelateInfoResponseList && res.data.teamMemberRelateInfoResponseList) {
+            this.AllMember = res.data.teamLeaderRelateInfoResponseList.concat(res.data.teamMemberRelateInfoResponseList)
+            this.total = res.total
+          } else {
+            this.AllMember = []
+          }
         }
       }
       this.memberSetupShow = false