merge main

This commit is contained in:
StyleZhang
2024-09-10 16:38:32 +08:00
846 changed files with 29953 additions and 10674 deletions

View File

@ -125,7 +125,7 @@ const WorkflowChecklist = ({
<div className='px-3 py-2 bg-gray-25 rounded-b-lg'>
<div className='flex text-xs leading-[18px] text-gray-500'>
<AlertTriangle className='mt-[3px] mr-2 w-3 h-3 text-[#F79009]' />
{t('workflow.common.needConnecttip')}
{t('workflow.common.needConnectTip')}
</div>
</div>
)

View File

@ -32,7 +32,7 @@ import {
} from '@/app/components/base/icons/src/vender/line/time'
import { AlertTriangle } from '@/app/components/base/icons/src/vender/line/alertsAndFeedback'
import {
fetcChatRunHistory,
fetchChatRunHistory,
fetchWorkflowRunHistory,
} from '@/service/workflow'
import Loading from '@/app/components/base/loading'
@ -67,7 +67,7 @@ const ViewHistory = ({
const historyWorkflowData = useStore(s => s.historyWorkflowData)
const { handleBackupDraft } = useWorkflowRun()
const { data: runList, isLoading: runListLoading } = useSWR((appDetail && !isChatMode && open) ? `/apps/${appDetail.id}/workflow-runs` : null, fetchWorkflowRunHistory)
const { data: chatList, isLoading: chatListLoading } = useSWR((appDetail && isChatMode && open) ? `/apps/${appDetail.id}/advanced-chat/workflow-runs` : null, fetcChatRunHistory)
const { data: chatList, isLoading: chatListLoading } = useSWR((appDetail && isChatMode && open) ? `/apps/${appDetail.id}/advanced-chat/workflow-runs` : null, fetchChatRunHistory)
const data = isChatMode ? chatList : runList
const isLoading = isChatMode ? chatListLoading : runListLoading