mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-31 04:59:24 +08:00
fix(web): agent log refetch and slider percentage rounding (#16344)
This commit is contained in:
@@ -685,7 +685,11 @@ export const useFetchVersion = (
|
||||
|
||||
export const useFetchAgentLog = (searchParams: IAgentLogsRequest) => {
|
||||
const { id } = useParams();
|
||||
const { data, isFetching: loading } = useQuery<IAgentLogsResponse>({
|
||||
const {
|
||||
data,
|
||||
isFetching: loading,
|
||||
refetch,
|
||||
} = useQuery<IAgentLogsResponse>({
|
||||
queryKey: [AgentApiAction.FetchAgentLog, id, searchParams],
|
||||
initialData: {} as IAgentLogsResponse,
|
||||
gcTime: 0,
|
||||
@@ -698,7 +702,7 @@ export const useFetchAgentLog = (searchParams: IAgentLogsRequest) => {
|
||||
},
|
||||
});
|
||||
|
||||
return { data, loading };
|
||||
return { data, loading, refetch };
|
||||
};
|
||||
|
||||
export const useFetchSessionsByCanvasId = () => {
|
||||
|
||||
Reference in New Issue
Block a user