Commit 405e99d2 authored by JzoNg's avatar JzoNg

fix api url of workflow run

parent 90ee7fe2
...@@ -4,18 +4,19 @@ import { useStore } from '../store' ...@@ -4,18 +4,19 @@ import { useStore } from '../store'
import { XClose } from '@/app/components/base/icons/src/vender/line/general' import { XClose } from '@/app/components/base/icons/src/vender/line/general'
const Record = () => { const Record = () => {
const { runTaskId, setRunTaskId } = useStore()
return ( return (
<div className='flex flex-col w-[400px] h-full rounded-2xl border-[0.5px] border-gray-200 shadow-xl bg-white'> <div className='flex flex-col w-[400px] h-full rounded-2xl border-[0.5px] border-gray-200 shadow-xl bg-white'>
<div className='flex items-center justify-between p-4 pb-1 text-base font-semibold text-gray-900'> <div className='flex items-center justify-between p-4 pb-1 text-base font-semibold text-gray-900'>
Test Run#5 Test Run#5
<div <div
className='flex items-center justify-center w-6 h-6 cursor-pointer' className='flex items-center justify-center w-6 h-6 cursor-pointer'
onClick={() => useStore.setState({ runTaskId: '' })} onClick={() => setRunTaskId('')}
> >
<XClose className='w-4 h-4 text-gray-500' /> <XClose className='w-4 h-4 text-gray-500' />
</div> </div>
</div> </div>
<Run activeTab='RESULT' appId='' /> <Run runID={runTaskId} />
</div> </div>
) )
} }
......
...@@ -67,7 +67,7 @@ export const fetchWorkflowLogs: Fetcher<WorkflowLogsResponse, { url: string; par ...@@ -67,7 +67,7 @@ export const fetchWorkflowLogs: Fetcher<WorkflowLogsResponse, { url: string; par
} }
export const fetchRunDetail = ({ appID, runID }: { appID: string; runID: string }) => { export const fetchRunDetail = ({ appID, runID }: { appID: string; runID: string }) => {
return get<WorkflowRunDetailResponse>(`/apps/${appID}/workflow-run/${runID}`) return get<WorkflowRunDetailResponse>(`/apps/${appID}/workflow-runs/${runID}`)
} }
export const fetchTracingList: Fetcher<NodeTracingListResponse, { url: string }> = ({ url }) => { export const fetchTracingList: Fetcher<NodeTracingListResponse, { url: string }> = ({ url }) => {
......
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 to comment