export default defineEventHandler((event) => { const page = 1 const pageSize = 10 const dataList: Record[] = [] // 根据分页计算数据 for (let i = 0; i < pageSize; i++) { dataList.push({ id: i + (page - 1) * pageSize, pid: null, path: '/dashboard', redirect: '/dashboard/analysis', name: `Dashboard` + `_${i + 1}`, icon: 'AppstoreOutlined', title: 'pages.dashboard.title', component: 'RouteView', }) } return { code: 200, data: { data: dataList, total: 200, }, } })