fix
This commit is contained in:
@@ -5,6 +5,7 @@ const whiteList = ['/login']
|
|||||||
console.log(whiteList)
|
console.log(whiteList)
|
||||||
|
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
|
requestAnimationFrame(() => {
|
||||||
const verify = to.meta?.verify;
|
const verify = to.meta?.verify;
|
||||||
if (typeof verify === 'function') {
|
if (typeof verify === 'function') {
|
||||||
const res = verify()
|
const res = verify()
|
||||||
@@ -16,6 +17,7 @@ router.beforeEach((to, from, next) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
next()
|
next()
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
router.afterEach(() => {
|
router.afterEach(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user