forked from 77media/video-flow
更新 接口字段更新
This commit is contained in:
parent
4a6a99904a
commit
5b35e274b9
@ -43,7 +43,7 @@ type InviteRecordsResponse = {
|
|||||||
code: number;
|
code: number;
|
||||||
message: string;
|
message: string;
|
||||||
data: {
|
data: {
|
||||||
invited_list: InviteRecord[];
|
record_list: InviteRecord[];
|
||||||
pagination: PaginationInfo;
|
pagination: PaginationInfo;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -102,7 +102,7 @@ export default function SharePage(): JSX.Element {
|
|||||||
try {
|
try {
|
||||||
const response = await fetchInviteRecords();
|
const response = await fetchInviteRecords();
|
||||||
if (mounted && response.successful) {
|
if (mounted && response.successful) {
|
||||||
setRecords(response.data.invited_list);
|
setRecords(response.data.record_list);
|
||||||
setPagination(response.data.pagination);
|
setPagination(response.data.pagination);
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user