Commit b943d05d by Archer Committed by GitHub

V4.9.5 feature (#4534)

* update doc

* add response detail value

* fix: filter params
parent 2af3cd83
......@@ -13,6 +13,7 @@ weight: 795
1. 团队成员权限细分,可分别控制是否可创建在根目录应用/知识库以及 API Key
2. 支持交互节点在嵌套工作流中使用。
3. 团队成员操作日志。
4. 用户输入节点支持多选框。
## ⚙️ 优化
......
......@@ -132,6 +132,7 @@ export async function dispatchWorkFlow(data: Props): Promise<DispatchFlowRespons
externalProvider,
stream = false,
version = 'v1',
responseDetail = true,
...props
} = data;
......@@ -638,7 +639,7 @@ export async function dispatchWorkFlow(data: Props): Promise<DispatchFlowRespons
!props.isToolCall &&
isRootRuntime &&
formatResponseData &&
!(!props.responseDetail && filterModuleTypeList.includes(formatResponseData.moduleType))
!(responseDetail === false && filterModuleTypeList.includes(formatResponseData.moduleType))
) {
props.workflowStreamResponse?.({
event: SseResponseEventEnum.flowNodeResponse,
......
......@@ -64,8 +64,6 @@ function OperationLogTable({ Tabs }: { Tabs: React.ReactNode }) {
ScrollData: LogScrollData
} = useScrollPagination(getOperationLogs, {
pageSize: 20,
throttleWait: 500,
debounceWait: 200,
refreshDeps: [searchParams],
params: searchParams
});
......@@ -92,10 +90,8 @@ function OperationLogTable({ Tabs }: { Tabs: React.ReactNode }) {
useEffect(() => {
setSearchParams({
...(isSelectAllTmb ? {} : { tmbIds: selectedTmbIds.length > 0 ? selectedTmbIds : undefined }),
...(isSelectAllEvent
? {}
: { events: selectedEvents.length > 0 ? selectedEvents : undefined })
...(isSelectAllTmb ? {} : { tmbIds: selectedTmbIds }),
...(isSelectAllEvent ? {} : { events: selectedEvents })
});
}, [selectedTmbIds, selectedEvents, isSelectAllTmb, isSelectAllEvent]);
......
......@@ -2,6 +2,7 @@ import { GET, POST, PUT } from '@/web/common/api/request';
import type { PaginationProps, PaginationResponse } from '@fastgpt/web/common/fetch/type';
import type { OperationListItemType } from '@fastgpt/global/support/operationLog/type';
import { OperationLogEventEnum } from '@fastgpt/global/support/operationLog/constants';
export const getOperationLogs = (
props: PaginationProps & {
tmbIds?: string[];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment