Files
helix/helix-web/src/api/menu/index.ts
T
siujamo c732624580 merge: import helix-web history into helix-web/
git-subtree-dir: helix-web
git-subtree-mainline: 21f14f8c05
git-subtree-split: 83f3120fdc
2026-09-01 10:05:58 +08:00

9 lines
264 B
TypeScript

import webClient from "@/client/web-client"
import type { TreeNode } from "@/types/tree"
import type { MenuItem } from "@/types/entity"
export async function fetchMenuTree() {
const { data } = await webClient.get<TreeNode<MenuItem>[]>("/menus")
return data
}