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 | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/layout/hooks/useNav.ts b/src/layout/hooks/useNav.ts index b1b0567..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"; @@ -52,7 +53,7 @@ : useUserStoreHook()?.nickname; }); - /** 瑙掕壊 */ + /** 褰撳墠瑙掕壊 */ const userRoles = computed(() => { return useUserStoreHook()?.nowRole; }); @@ -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