Set default layout
This commit is contained in:
parent
2536368e77
commit
ea85ed42fa
|
@ -90,6 +90,8 @@ async function beforeEach (to, from, next) {
|
||||||
router.app.setLayout(components[0].layout)
|
router.app.setLayout(components[0].layout)
|
||||||
} else if (components[0].default && components[0].default.layout) {
|
} else if (components[0].default && components[0].default.layout) {
|
||||||
router.app.setLayout(components[0].default.layout)
|
router.app.setLayout(components[0].default.layout)
|
||||||
|
} else {
|
||||||
|
router.app.setLayout(null)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue