From 158fbfd1249ca1adaa2a91deb404a964a48b986a Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Sun, 22 Sep 2024 21:41:46 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E4=BA=BA=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/agentSetting.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/views/system/user/agentSetting.vue b/src/views/system/user/agentSetting.vue index f72ed08..8de3ed6 100644 --- a/src/views/system/user/agentSetting.vue +++ b/src/views/system/user/agentSetting.vue @@ -78,13 +78,15 @@ const getUserAgentInfo = async () => { await getAgentInfo(userId.value).then(res => { if (res.code === 1000) { agentInfoForm.value = res.data - agentUserList.value = [ - { - id: res.data.agentUserId, - name: res.data.agentNickName, - companyName: res.data.agentCompanyName, - } - ] + if(res.data.agentUserId) { + agentUserList.value = [ + { + id: res.data.agentUserId, + name: res.data.agentNickName, + companyName: res.data.agentCompanyName, + } + ] + } } else { ElNotification({ title: '提示',