fix(auth): make header link title optional in layout store

This commit is contained in:
2026-02-25 01:28:11 +08:00
parent 341e2331a0
commit 0be8c66754

View File

@@ -36,7 +36,7 @@ export type LayoutStore = {
links: HeaderLink[]; links: HeaderLink[];
}; };
type HeaderLink = { type HeaderLink = {
title: string; title?: string;
href: string; href: string;
description?: string; description?: string;
icon?: React.ReactNode; icon?: React.ReactNode;
@@ -99,5 +99,5 @@ export const useLayoutStore = create<LayoutStore>((set, get) => ({
setLoginPageConfig: (config) => set((state) => ({ setLoginPageConfig: (config) => set((state) => ({
loginPageConfig: { ...state.loginPageConfig, ...config }, loginPageConfig: { ...state.loginPageConfig, ...config },
})), })),
links: [{ title: '首页', href: '/', key: 'home' }], links: [{ title: '', href: '/', key: 'home' }],
})); }));