Files
helix-web-react/src/api/menu/index.ts
T

9 lines
264 B
TypeScript
Raw Normal View History

2026-01-05 10:10:51 +08:00
import webClient from "@/client/web-client"
2025-12-25 16:12:01 +08:00
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
}