From 7098545b374cb677f857760f64ddc7890773640a Mon Sep 17 00:00:00 2001 From: leafage-collb <3303710797@qq.com> Date: Mon, 17 Jul 2023 16:55:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=BC=E8=88=AA=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dashboard-front/src/App.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/dashboard-front/src/App.vue b/src/dashboard-front/src/App.vue index f8a66937f..fc7e784e9 100644 --- a/src/dashboard-front/src/App.vue +++ b/src/dashboard-front/src/App.vue @@ -990,11 +990,12 @@ }, goPage (routeName) { if (routeName) { - const route = { name: routeName } - if (!['index', 'apigwAccess'].includes(routeName)) { - route.params = this.apigwId - } - this.$router.push(route) + this.$router.push({ + name: routeName, + params: { + id: ['index', 'apigwAccess'].includes(routeName) ? '' : this.apigwId + } + }) } }, dropdownShow () {