From fe7069548de7b85e0b2e6b7d6b62b0dafef375d7 Mon Sep 17 00:00:00 2001 From: mx1700 Date: Sun, 4 Aug 2019 19:35:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E5=88=B0=E6=8E=A8=E9=80=81=E5=90=8E=EF=BC=8C=E6=8F=90=E9=86=92?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=B2=A1=E6=9C=89=E5=88=B7=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/NotificationPage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/page/NotificationPage.js b/src/page/NotificationPage.js index 3eb1fc6..c1fec8d 100644 --- a/src/page/NotificationPage.js +++ b/src/page/NotificationPage.js @@ -75,7 +75,7 @@ export default class NotificationPage extends Component { this.restartTipTimer().catch((err) => console.log(err)) }); this.loginListener = DeviceEventEmitter.addListener(Event.login, () => { - this.registerUser().catch((err) => console.log(err)) + this.registerUser().catch((err) => console.log(err)); this.restartTipTimer().catch((err) => console.log(err)) }); this.updatePushInfo(); @@ -123,6 +123,7 @@ export default class NotificationPage extends Component { } receiveNotification = (msg) => { + this.refresh(); this.restartTipTimer().catch((err) => console.log(err)) };