mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
Test version (#4792)
* plugin node version select (#4760) * plugin node version select * type * fix * fix * perf: version list * fix node version (#4787) * change my select * fix-ui * fix test * add test * fix * remove invalid version field * filter deprecated field * fix: claude tool call * fix: test --------- Co-authored-by: heheer <heheer@sealos.io>
This commit is contained in:
@@ -190,6 +190,7 @@ export function useScrollPagination<
|
||||
params = {},
|
||||
EmptyTip,
|
||||
showErrorToast = true,
|
||||
disalbed = false,
|
||||
...props
|
||||
}: {
|
||||
scrollLoadType?: 'top' | 'bottom';
|
||||
@@ -198,6 +199,7 @@ export function useScrollPagination<
|
||||
params?: Record<string, any>;
|
||||
EmptyTip?: React.JSX.Element;
|
||||
showErrorToast?: boolean;
|
||||
disalbed?: boolean;
|
||||
} & Parameters<typeof useRequest2>[1]
|
||||
) {
|
||||
const { t } = useTranslation();
|
||||
@@ -345,10 +347,10 @@ export function useScrollPagination<
|
||||
// Reload data
|
||||
useRequest2(
|
||||
async () => {
|
||||
if (disalbed) return;
|
||||
loadData(true);
|
||||
},
|
||||
{
|
||||
manual: false,
|
||||
...props
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user