From 3324a54fa4d0840f8a5dc8adb21753180ecd3f3c Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期二, 02 九月 2025 14:25:06 +0800
Subject: [PATCH] 公告信息页面

---
 src/layout/hooks/useNav.ts |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/layout/hooks/useNav.ts b/src/layout/hooks/useNav.ts
index 17745d4..b3b11a0 100644
--- a/src/layout/hooks/useNav.ts
+++ b/src/layout/hooks/useNav.ts
@@ -15,6 +15,7 @@
 import ExitFullscreen from "~icons/ri/fullscreen-exit-fill";
 import Fullscreen from "~icons/ri/fullscreen-fill";
 import { unref } from "vue";
+import { message } from "@/utils/message";
 
 const errorInfo =
   "The current routing configuration is incorrect, please check the configuration";
@@ -107,8 +108,13 @@
       .then(res => {
         if (res.code == 200) {
           // 鑾峰彇鍚庣璺敱
-          initRouter();
-          onFresh();
+          initRouter().then(() => {
+            const path = getTopMenu(true);
+            router.push({ name: path.name });
+          });
+          // onFresh();
+        } else {
+          message(res?.message, { type: "warning" });
         }
       });
   };

--
Gitblit v1.9.1