From 78921416615f450f4cc29ec4f740fbf1b47d8b00 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期二, 19 八月 2025 17:18:28 +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