fix(auth): make header link title optional in layout store
This commit is contained in:
@@ -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<LayoutStore>((set, get) => ({
|
||||
setLoginPageConfig: (config) => set((state) => ({
|
||||
loginPageConfig: { ...state.loginPageConfig, ...config },
|
||||
})),
|
||||
links: [{ title: '首页', href: '/', key: 'home' }],
|
||||
links: [{ title: '', href: '/', key: 'home' }],
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user