From cc5ac0c659a5b7ea7e3f76a7573cc20745d215d6 Mon Sep 17 00:00:00 2001 From: junstyle Date: Tue, 15 Mar 2022 14:41:22 +0800 Subject: [PATCH] =?UTF-8?q?JSON.stringify=E5=87=BA=E7=8E=B0=E5=BE=AA?= =?UTF-8?q?=E7=8E=AF=E5=BC=95=E7=94=A8=E9=94=99=E8=AF=AF=20(#951)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit JSON.stringify出现循环引用错误 --- web/src/permission.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/permission.js b/web/src/permission.js index eee13afad..18788bdcd 100644 --- a/web/src/permission.js +++ b/web/src/permission.js @@ -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 // 在白名单中的判断情况