Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Apr 13, 2023
1 parent 01c9e1b commit 1da16c9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/store/modules/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,9 @@ const useUserStore = defineStore('user', {
}).catch(_ => {
this.clearToken()
router.push({ name: 'login' })
reject(error)
})
}).catch(error => {
this.clearToken()
router.push({ name: 'login' })
reject(error)
})

},

login(form) {
Expand Down

0 comments on commit 1da16c9

Please sign in to comment.