From c9c33ae573e5222482ddf72a63eb4548a1bf43e3 Mon Sep 17 00:00:00 2001 From: yuntian001 <479820787@qq.com> Date: Mon, 22 Aug 2022 17:06:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=93=E5=8C=85=E5=90=8Eroute=20?= =?UTF-8?q?=E4=B8=8D=E6=94=AF=E6=8C=81json=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/header/components/tagBar/index.vue | 2 +- src/views/dashboard/index.vue | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/layout/components/header/components/tagBar/index.vue b/src/layout/components/header/components/tagBar/index.vue index d89e4425..a5cd5862 100644 --- a/src/layout/components/header/components/tagBar/index.vue +++ b/src/layout/components/header/components/tagBar/index.vue @@ -149,7 +149,7 @@ const setTag = (route: RouteLocationNormalized) => { if (index > -1) { return jump(index); } - tags.push(JSON.parse(JSON.stringify(route))); + tags.push(route); return jump(tags.length - 1); } }; diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index cb1937e9..c014ab09 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,10 +1,12 @@ - +