perf: logs, auth root as super admin, etc (#2615)

* chore: usePagination hook type

* feat: chat log show outlinkuid or tmb avatar and name

* fix: ts error for pagination

* feat: auth root
This commit is contained in:
Finley Ge
2024-09-09 10:05:18 +08:00
committed by GitHub
parent 91ec895fd2
commit a1ae08f62b
19 changed files with 127 additions and 66 deletions

View File

@@ -20,7 +20,6 @@ import { getPromotionInitData, getPromotionRecords } from '@/web/support/activit
import { useUserStore } from '@/web/support/user/useUserStore';
import { useCopyData } from '@/web/common/hooks/useCopyData';
import type { PromotionRecordType } from '@/global/support/api/userRes.d';
import dayjs from 'dayjs';
import { usePagination } from '@fastgpt/web/hooks/usePagination';
import { useLoading } from '@fastgpt/web/hooks/useLoading';
@@ -40,7 +39,7 @@ const Promotion = () => {
total,
pageSize,
Pagination
} = usePagination<PromotionRecordType>({
} = usePagination({
api: getPromotionRecords,
pageSize: 20
});

View File

@@ -62,7 +62,7 @@ const BillTable = () => {
Pagination,
getData,
total
} = usePagination<BillSchemaType>({
} = usePagination({
api: getBills,
pageSize: 20,
params: {

View File

@@ -31,7 +31,7 @@ const InvoiceTable = () => {
Pagination,
getData,
total
} = usePagination<InvoiceSchemaType>({
} = usePagination({
api: getInvoiceRecords,
pageSize: 20,
defaultRequest: false