|
|
@ -21,6 +21,7 @@ router.beforeEach((to, from, next) => {
|
|
|
|
// TODO Get installation status
|
|
|
|
// TODO Get installation status
|
|
|
|
|
|
|
|
|
|
|
|
next()
|
|
|
|
next()
|
|
|
|
|
|
|
|
NProgress.done()
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -28,12 +29,10 @@ router.beforeEach((to, from, next) => {
|
|
|
|
// Check whitelist
|
|
|
|
// Check whitelist
|
|
|
|
if (whiteList.includes(to.name)) {
|
|
|
|
if (whiteList.includes(to.name)) {
|
|
|
|
next()
|
|
|
|
next()
|
|
|
|
|
|
|
|
NProgress.done()
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
next({ name: 'Login', query: { redirect: to.fullPath } })
|
|
|
|
next({ name: 'Login', query: { redirect: to.fullPath } })
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
router.afterEach(() => {
|
|
|
|
|
|
|
|
NProgress.done()
|
|
|
|
NProgress.done()
|
|
|
|
})
|
|
|
|
})
|
|
|
|