From 97065ca162288e1cb9855a79b7cf945fa09da9db Mon Sep 17 00:00:00 2001 From: fan Date: Fri, 2 Sep 2022 15:19:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/trainingManage/editDetails.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/trainingManage/editDetails.vue b/src/views/trainingManage/editDetails.vue index ad85b6e16..fef291393 100644 --- a/src/views/trainingManage/editDetails.vue +++ b/src/views/trainingManage/editDetails.vue @@ -246,8 +246,10 @@ export default { }, handleEditOperate(index, row) { const member = this.$store.state.training.memberData[row.memberId]; - assignUsersPlayRoles([{ userId: this.$store.state.user.id, memberId: member.id}], this.$route.query.group).then(resp => { - }).catch(() => { this.$message.error('调整角色失败!'); }); + if (!member.userId) { + assignUsersPlayRoles([{ userId: this.$store.state.user.id, memberId: member.id}], this.$route.query.group).then(resp => { + }).catch(() => { this.$message.error('调整角色失败!'); }); + } // assignUsersPlayRoles this.$emit('openEditOperate', { index: index, data: row }); this.doClose();