Fix Vue vm children not found
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
5abec46140
commit
69607d2c8f
|
@ -158,9 +158,11 @@ const router = new Router({
|
||||||
|
|
||||||
router.beforeEach(authGuardIfNeeded);
|
router.beforeEach(authGuardIfNeeded);
|
||||||
router.afterEach(() => {
|
router.afterEach(() => {
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
if (router.app.$children[0]) {
|
||||||
// @ts-ignore
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
router.app.$children[0].error = null;
|
// @ts-ignore
|
||||||
|
router.app.$children[0].error = null;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
|
|
Loading…
Reference in a new issue