menu.ts 287 B

1234567891011
  1. import { request } from '@/utils/http'
  2. import type { ResultData } from '@/utils/http'
  3. export type MenuItem = {
  4. id: number
  5. title: string
  6. cover: string
  7. children: MenuItem[]
  8. grid: number
  9. }
  10. export const getMenuList = (): Promise<ResultData<MenuItem[]>> => request.get('web/menu')