fix : 修复代理人回显
This commit is contained in:
@@ -78,13 +78,15 @@ 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
|
||||||
agentUserList.value = [
|
if(res.data.agentUserId) {
|
||||||
{
|
agentUserList.value = [
|
||||||
id: res.data.agentUserId,
|
{
|
||||||
name: res.data.agentNickName,
|
id: res.data.agentUserId,
|
||||||
companyName: res.data.agentCompanyName,
|
name: res.data.agentNickName,
|
||||||
}
|
companyName: res.data.agentCompanyName,
|
||||||
]
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ElNotification({
|
ElNotification({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
|
|||||||
Reference in New Issue
Block a user