fix : 修复代理人回显
This commit is contained in:
@@ -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: '提示',
|
||||
|
||||
Reference in New Issue
Block a user