From 7fbbc9086d636baedfe8fafff18193a67f7cdcd0 Mon Sep 17 00:00:00 2001
From: pan <1029559041@qq.com>
Date: Thu, 4 Jun 2020 01:06:14 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A5=BD=E5=8F=8B=E6=90=9C=E7=B4=A2=E4=BC=98?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/my/MyFriend.tsx | 21 +++++++++++++++++----
src/public.tsx | 4 ++--
2 files changed, 19 insertions(+), 6 deletions(-)
diff --git a/src/my/MyFriend.tsx b/src/my/MyFriend.tsx
index 2a3b4d8..c35293a 100644
--- a/src/my/MyFriend.tsx
+++ b/src/my/MyFriend.tsx
@@ -158,9 +158,10 @@ export class MyFriend extends React.Component<
queryFriend:e.target.value
})
loadMyFriend(e.target.value,this,1)
+ this.queryUser(e.target.value,1)
}}/>
- {this.state.friendList?this.state.friendList.map((friend:User,index:number)=>
+ {this.state.friendList?this.state.friendList.length>0?this.state.friendList.map((friend:User,index:number)=>