2023-12-21 16:42:39 +08:00
|
|
|
// 变量名对应含义请在 /stores/* 里边找
|
|
|
|
|
import type { RouteRecordRaw, RouteLocationNormalized } from 'vue-router'
|
|
|
|
|
|
|
|
|
|
export interface Layout {
|
|
|
|
|
showDrawer: boolean
|
|
|
|
|
shrink: boolean
|
|
|
|
|
layoutMode: string
|
|
|
|
|
mainAnimation: string
|
|
|
|
|
isDark: boolean
|
|
|
|
|
menuWidth: number
|
|
|
|
|
menuDefaultIcon: string
|
|
|
|
|
menuCollapse: boolean
|
|
|
|
|
menuUniqueOpened: boolean
|
|
|
|
|
menuShowTopBar: boolean
|
2023-12-28 14:49:48 +08:00
|
|
|
elementUiPrimary: string[]
|
2023-12-21 16:42:39 +08:00
|
|
|
menuBackground: string[]
|
|
|
|
|
menuColor: string[]
|
|
|
|
|
menuActiveBackground: string[]
|
|
|
|
|
menuActiveColor: string[]
|
|
|
|
|
menuTopBarBackground: string[]
|
|
|
|
|
headerBarTabColor: string[]
|
|
|
|
|
headerBarBackground: string[]
|
|
|
|
|
headerBarHoverBackground: string[]
|
|
|
|
|
headerBarTabActiveBackground: string[]
|
|
|
|
|
headerBarTabActiveColor: string[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface NavTabs {
|
|
|
|
|
activeIndex: number
|
|
|
|
|
activeRoute: RouteLocationNormalized | null
|
|
|
|
|
tabsView: RouteLocationNormalized[]
|
|
|
|
|
tabFullScreen: boolean
|
|
|
|
|
tabsViewRoutes: RouteRecordRaw[]
|
|
|
|
|
authNode: Map<string, string[]>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface AdminInfo {
|
|
|
|
|
id: number
|
|
|
|
|
username: string
|
|
|
|
|
nickname: string
|
|
|
|
|
avatar: string
|
|
|
|
|
last_login_time: string
|
|
|
|
|
token: string
|
|
|
|
|
refresh_token: string
|
2023-12-28 11:27:03 +08:00
|
|
|
super: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface DictData {
|
|
|
|
|
basic: BasicDictData[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface BasicDictData {
|
|
|
|
|
name: string
|
|
|
|
|
id: string
|
|
|
|
|
code: string
|
|
|
|
|
value: null
|
|
|
|
|
sort: number | null
|
|
|
|
|
children?: BasicDictData[]
|
2023-12-21 16:42:39 +08:00
|
|
|
}
|