Update new readme

Former-commit-id: fa736cdab1636fa38bcf895d23b4a81c48eff0b6 [formerly d05e6cf88a7c0f7791131ce8612a0fdb9fe0129a] [formerly cf79c727c9e40fb3831b1b333e32f4d65bf2f122 [formerly 18414dbc5e4345c5f23975645be5192a941f6fb1]]
Former-commit-id: d0aad221109a4940426ee47f8b8046f660918b74 [formerly 101bed38ef97803c8b38a5f7820b526608570666]
Former-commit-id: eeb8f07063aaf131993b529d252cc991e7672aa7
This commit is contained in:
Henrique Dias
2017-07-08 15:36:17 +01:00
parent 2bce61df57
commit f6aeb27ca4
2 changed files with 5 additions and 3 deletions

View File

@@ -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.