修复提醒页连续报错问题

This commit is contained in:
mx1700 2019-08-05 22:28:25 +08:00
parent 205f19592f
commit 0ef9303bbd

View file

@ -36,6 +36,7 @@ export default class NotificationList extends Component {
let notifications = await this.getMessages(); let notifications = await this.getMessages();
this.notificationsData = notifications; this.notificationsData = notifications;
this.setNotifications(notifications); this.setNotifications(notifications);
this.setState({error: false});
} catch (e) { } catch (e) {
this.setState({error: true}); this.setState({error: true});
} }