From 122faf2b3a03f7ef381d70a38684fe0b70d42ebc Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期二, 12 十二月 2023 22:17:39 +0800
Subject: [PATCH] 图片上传显示bug

---
 src/views/layout/components/Menu/index.vue |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/views/layout/components/Menu/index.vue b/src/views/layout/components/Menu/index.vue
index ad7f937..5302c98 100644
--- a/src/views/layout/components/Menu/index.vue
+++ b/src/views/layout/components/Menu/index.vue
@@ -102,8 +102,13 @@
     watch: {
         $route() {
             this.handleSelect(this.$route.fullPath)
-        }
+        },
+        '$route.path'(toPath, fromPath) {
+            this.handleSelect(toPath)
+            this.$router.push({ path: toPath })
+        },
     },
+
     methods: {
         handleSelect(path) {
             this.isActive = path

--
Gitblit v1.8.0