Merge branch 'fix/app-ready' into feature/vue3-modals-with-router-4
This commit is contained in:
commit
a16e8fea61
3 changed files with 14 additions and 8 deletions
|
|
@ -429,11 +429,7 @@ const router = createRouter({
|
|||
],
|
||||
})
|
||||
|
||||
router.beforeEach((to) => {
|
||||
return checkAuth(to)
|
||||
})
|
||||
|
||||
function checkAuth(route: RouteLocation) {
|
||||
export function checkAuth(route: RouteLocation) {
|
||||
const authUser = store.getters['auth/authUser']
|
||||
const authLinkShare = store.getters['auth/authLinkShare']
|
||||
|
||||
|
|
|
|||
Reference in a new issue