实现权限管理页面与功能
This commit is contained in:
19
src/app/(root)/permissions/page.tsx
Normal file
19
src/app/(root)/permissions/page.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
"use client"
|
||||
import { Suspense } from "react"
|
||||
import { getPagePermission } from "@/actions/permission"
|
||||
import { DataTable, useDataTable } from "@/components/data-table"
|
||||
|
||||
export default function PermissionsPage() {
|
||||
const table = useDataTable((page, size) => getPagePermission({ page, size }))
|
||||
return (
|
||||
<Suspense>
|
||||
<DataTable
|
||||
{...table}
|
||||
columns={[
|
||||
{ header: "编码", accessorKey: "name" },
|
||||
{ header: "描述", accessorKey: "description" },
|
||||
]}
|
||||
/>
|
||||
</Suspense>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user