From 6fe1fc42577d3e6bdd1304a3f1243f60da734ac1 Mon Sep 17 00:00:00 2001 From: Jack Goh Date: Thu, 9 Aug 2018 17:37:01 +0800 Subject: [PATCH] fix password reset link not found bug --- resources/assets/js/components/Navbar.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/components/Navbar.vue b/resources/assets/js/components/Navbar.vue index 4724a60f..7f32c3c2 100644 --- a/resources/assets/js/components/Navbar.vue +++ b/resources/assets/js/components/Navbar.vue @@ -104,13 +104,14 @@ export default { unread_message_length:0, url: '/api/notification/user', pagination: [], - }), computed: mapGetters({ user: 'auth/user' }), mounted(){ - this.getNotification(this.url); + if(this.user){ + this.getNotification(this.url) + } }, methods: { async logout(){