fix : 修复代理人回显

This commit is contained in:
2024-09-22 21:41:46 +08:00
parent 35ba4523e8
commit 158fbfd124

View File

@@ -78,6 +78,7 @@ const getUserAgentInfo = async () => {
await getAgentInfo(userId.value).then(res => { await getAgentInfo(userId.value).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
agentInfoForm.value = res.data agentInfoForm.value = res.data
if(res.data.agentUserId) {
agentUserList.value = [ agentUserList.value = [
{ {
id: res.data.agentUserId, id: res.data.agentUserId,
@@ -85,6 +86,7 @@ const getUserAgentInfo = async () => {
companyName: res.data.agentCompanyName, companyName: res.data.agentCompanyName,
} }
] ]
}
} else { } else {
ElNotification({ ElNotification({
title: '提示', title: '提示',