Update new readme
This commit is contained in:
2 files changed
+5
-3
No files matched your search
@@ -105,6 +105,8 @@ const router = new Router({
|
||||
})
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
document.title = to.name
|
||||
|
||||
if (to.matched.some(record => record.meta.requiresAuth)) {
|
||||
// this route requires auth, check if logged in
|
||||
// if not, redirect to login page.
|
||||
|
||||
Reference in new issue
Block a user