Use arrow functions

This commit is contained in:
Kevin Thomas
2021-08-16 23:06:27 -07:00
parent 25e1094242
commit 1af31d9573
13 changed files with 58 additions and 57 deletions

View File

@@ -50,7 +50,7 @@ router.beforeEach((to, from, next) => {
next('/login')
}
})
.catch(function (error) {
.catch((error) => {
console.error(error.response)
next('/login')
})
@@ -63,7 +63,7 @@ router.beforeEach((to, from, next) => {
next('/')
}
})
.catch(function (error) {
.catch((error) => {
console.error(error.response)
next('/')
})