Skip to content

Commit

Permalink
fix: handle network error
Browse files Browse the repository at this point in the history
  • Loading branch information
lbwa committed Oct 6, 2018
1 parent 1a6cc02 commit 84eb8d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/view/#.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ export default {
this.$router.replace('/dashboard/analysis')
})
.catch(e => {
this.$notify.error({
title: '网络超时',
message: '请检查网络链接'
})
this.loading = false
console.error(e)
})
})
}
}
Expand Down

0 comments on commit 84eb8d6

Please # to comment.