@@ -36,7 +36,7 @@ async function handleKeepAlive(to) {
|
|||||||
|
|
||||||
router.beforeEach(async(to, from, next) => {
|
router.beforeEach(async(to, from, next) => {
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
to.meta.matched = JSON.parse(JSON.stringify(to.matched))
|
to.meta.matched = [...to.matched]
|
||||||
handleKeepAlive(to)
|
handleKeepAlive(to)
|
||||||
const token = userStore.token
|
const token = userStore.token
|
||||||
// 在白名单中的判断情况
|
// 在白名单中的判断情况
|
||||||
|
Reference in New Issue
Block a user