Skip to content

Commit 3682dce

Browse files
authored
JSON.stringify出现循环引用错误 (flipped-aurora#951)
JSON.stringify出现循环引用错误
1 parent 04b0f4f commit 3682dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/permission.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function handleKeepAlive(to) {
3636

3737
router.beforeEach(async(to, from, next) => {
3838
const userStore = useUserStore()
39-
to.meta.matched = JSON.parse(JSON.stringify(to.matched))
39+
to.meta.matched = [...to.matched]
4040
handleKeepAlive(to)
4141
const token = userStore.token
4242
// 在白名单中的判断情况

0 commit comments

Comments
 (0)