From 83af3dd309889489f541fc8e21894c9f79e5788c Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期五, 22 八月 2025 16:09:58 +0800 Subject: [PATCH] 用户管理 --- src/layout/hooks/useNav.ts | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/layout/hooks/useNav.ts b/src/layout/hooks/useNav.ts index b1b0567..88ff49c 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; }); @@ -109,6 +110,8 @@ // 鑾峰彇鍚庣璺敱 initRouter(); onFresh(); + } else { + message(res?.message, { type: "warning" }); } }); }; -- Gitblit v1.9.1