mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-26 01:38:36 +00:00
Fix Vue vm children not found
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
5abec46140
commit
69607d2c8f
1 changed files with 5 additions and 3 deletions
|
@ -158,9 +158,11 @@ const router = new Router({
|
||||||
|
|
||||||
router.beforeEach(authGuardIfNeeded);
|
router.beforeEach(authGuardIfNeeded);
|
||||||
router.afterEach(() => {
|
router.afterEach(() => {
|
||||||
|
if (router.app.$children[0]) {
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
router.app.$children[0].error = null;
|
router.app.$children[0].error = null;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
|
|
Loading…
Reference in a new issue