mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-16 04:58:02 +00:00
Use arrow functions
This commit is contained in:
@@ -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('/')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user