chore: header menu 初步

This commit is contained in:
xiaojunnuo
2024-10-25 23:56:24 +08:00
parent c4164c66e2
commit a7414047ee
9 changed files with 221 additions and 5 deletions

View File

@@ -32,6 +32,16 @@ export type SysPublicSetting = {
export type SysInstallInfo = {
siteId: string;
};
export type MenuItem = {
id: string;
title: string;
icon?: string;
path?: string;
children?: MenuItem[];
};
export type HeaderMenus = {
menus: MenuItem[];
};
export type AllSettings = {
sysPublic: SysPublicSetting;
@@ -39,6 +49,7 @@ export type AllSettings = {
plusInfo: PlusInfo;
siteInfo: SiteInfo;
siteEnv: SiteEnv;
headerMenus: HeaderMenus;
};
export async function loadAllSettings(): Promise<AllSettings> {