import type { FunctionalComponent } from "vue"; /** * 登录后默认打开的标签页。 * * 这里要和 `src/router/modules/digital.ts` 的业务页面保持一致, * 否则登出重置标签页或首次进入后台时会出现空标签/错入口。 */ /** 数字人后台默认标签,旧业务路由保留但不自动打开。 */ export const routerArrays: Array = [ { path: "/digital/content", name: "DigitalContent", meta: { title: "角色与内容库", icon: "ep/collection" } }, { path: "/digital/experiments", name: "DigitalExperiments", meta: { title: "账号实验中心", icon: "ep/data-analysis" } } ]; export type routeMetaType = { title?: string; icon?: string | FunctionalComponent; showLink?: boolean; savedPosition?: boolean; permission?: string | Array; menuKey?: string; }; export type RouteConfigs = { path?: string; query?: object; params?: object; meta?: routeMetaType; children?: RouteConfigs[]; name?: string; }; export type multiTagsType = { tags: Array; }; export type tagsViewsType = { icon: string | FunctionalComponent; text: string; divided: boolean; disabled: boolean; show: boolean; }; export interface setType { sidebar: { opened: boolean; withoutAnimation: boolean; isClickCollapse: boolean; }; device: string; fixedHeader: boolean; classes: { hideSidebar: boolean; openSidebar: boolean; withoutAnimation: boolean; mobile: boolean; }; hideTabs: boolean; } export type menuType = { id?: number; name?: string; path?: string; noShowingChildren?: boolean; children?: menuType[]; value: unknown; meta?: { icon?: string; title?: string; rank?: number; showParent?: boolean; extraIcon?: string; }; showTooltip?: boolean; parentId?: number; pathList?: number[]; redirect?: string; }; export type themeColorsType = { color: string; themeColor: string; }; export interface scrollbarDomType extends HTMLElement { wrap?: { offsetWidth: number; }; }