zzy
Results
2
issues of
zzy
A帐号调用 friendList方法时正常,但B帐号调用时却报发现 `TypeError: Cannot read property 'UserName' of undefined`错误; 定位到getDisplayName参数中的contact为undefined,临时加了一个判断。但不清楚为什么A帐号不报错,B帐号却报错。。。 ``` export function getDisplayName (contact) { if(!contact || !contact.UserName) return '未知用户'; if (isRoomContact(contact)) { return '[群] ' + (contact.RemarkName ||...