This commit is contained in:
李志鹏
2025-10-31 14:52:16 +08:00
parent f15cadc19f
commit ef5392e28c

View File

@@ -5,6 +5,7 @@ const whiteList = ['/login']
console.log(whiteList)
router.beforeEach((to, from, next) => {
requestAnimationFrame(() => {
const verify = to.meta?.verify;
if (typeof verify === 'function') {
const res = verify()
@@ -16,6 +17,7 @@ router.beforeEach((to, from, next) => {
}
}
next()
})
})
router.afterEach(() => {