From 95a30e5f306c33ca57f5a213d73ebf3b8051ad7e Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Fri, 17 May 2024 09:25:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=A0=87=E7=AD=BE=E8=B7=B3?= =?UTF-8?q?=E8=BD=ACbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JiHeExpressway/components/RecentPages/index.vue | 10 +++++++++- .../control/event/emergencyProcessManagement/index.vue | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/RecentPages/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/RecentPages/index.vue index 7b51ae92..fba02e5b 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/RecentPages/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/RecentPages/index.vue @@ -128,7 +128,15 @@ export default{ this.removeRecent(item); if(this.$route.path == item.path){ if(this.recentPages.length){ - this.$router.push(this.recentPages[this.recentPages.length-1].path) + let route = this.recentPages[this.recentPages.length-1] + if (Object.keys(route.query).length > 0){ + this.$router.push({ + path: route.path, + query: route.query + }); + } else { + this.$router.push(route.path); + } }else{ this.$router.push("/") } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/index.vue index 3c3265af..891d377f 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/index.vue @@ -28,7 +28,7 @@