login: fix unhandled promise issue

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2020-02-19 10:53:47 +05:30
parent fe051554a4
commit 83af66ca87
1 changed files with 1 additions and 1 deletions

View File

@ -174,8 +174,8 @@ export default {
})
},
loginSuccess (res) {
this.$router.push({ name: 'dashboard' })
this.$message.loading('Login Successful. Discovering Features...', 5)
this.$router.push({ path: '/dashboard' }).catch(() => {})
},
requestFailed (err) {
if (err && err.response && err.response.data && err.response.data.loginresponse) {