/* * @FilePath: store.d.ts * @Author: 旭颖 * @Date: 2022-10-31 14:56:49 * @LastEditors: liangxvying 1615026511@qq.com * @LastEditTime: 2024-12-09 16:49:19 */ import { VabRouteMeta, VabRouteRecord } from '/#/router' declare interface AclModuleType { admin: boolean role: string[] permission: string[] } declare interface ErrorLogModuleType { errorLogs: any[] } declare interface RoutesModuleType { tab: { data: string | undefined } tabMenu: string | undefined activeMenu: { data: string | undefined } routes: VabRouteRecord[] } declare type DeviceType = 'mobile' | 'desktop' declare type LanguageType = 'zh' | 'en' declare interface SettingsModuleType { theme: ThemeType device: DeviceType collapse: boolean language: LanguageType lock: boolean logo: string title: string echartsGraphic1: string[] echartsGraphic2: string[] } declare interface TabsModuleType { visitedRoutes: VabRouteRecord[] } declare interface OptionType { name?: string title?: string meta: VabRouteMeta } declare interface UserModuleType { token: string | boolean username: string name: string avatar: string id: number type: number factories: Arrary shop_id: number supplier_id: number }