From 0be8c66754af33f35a865226974c7639dff6b06e Mon Sep 17 00:00:00 2001 From: abearxiong Date: Wed, 25 Feb 2026 01:28:11 +0800 Subject: [PATCH] fix(auth): make header link title optional in layout store --- src/pages/auth/store.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/auth/store.ts b/src/pages/auth/store.ts index 524d1c3..28ef0a9 100644 --- a/src/pages/auth/store.ts +++ b/src/pages/auth/store.ts @@ -36,7 +36,7 @@ export type LayoutStore = { links: HeaderLink[]; }; type HeaderLink = { - title: string; + title?: string; href: string; description?: string; icon?: React.ReactNode; @@ -99,5 +99,5 @@ export const useLayoutStore = create((set, get) => ({ setLoginPageConfig: (config) => set((state) => ({ loginPageConfig: { ...state.loginPageConfig, ...config }, })), - links: [{ title: '首页', href: '/', key: 'home' }], + links: [{ title: '', href: '/', key: 'home' }], }));