未验证 提交 3682dce8 编写于 作者: J junstyle 提交者: GitHub

JSON.stringify出现循环引用错误 (#951)

JSON.stringify出现循环引用错误
上级 04b0f4f2
......@@ -36,7 +36,7 @@ async function handleKeepAlive(to) {
router.beforeEach(async(to, from, next) => {
const userStore = useUserStore()
to.meta.matched = JSON.parse(JSON.stringify(to.matched))
to.meta.matched = [...to.matched]
handleKeepAlive(to)
const token = userStore.token
// 在白名单中的判断情况
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册