feat: workflow use common last run

This commit is contained in:
Joel
2025-07-14 15:10:21 +08:00
parent 928751a856
commit 7a9faf909e
18 changed files with 143 additions and 71 deletions

10
web/service/utils.ts Normal file
View File

@ -0,0 +1,10 @@
import { FlowType } from '@/types/common'
export const flowPrefixMap = {
[FlowType.appFlow]: 'apps',
[FlowType.ragFlow]: 'rag/pipelines',
}
export const getFlowPrefix = (type: FlowType) => {
return flowPrefixMap[type] || flowPrefixMap[FlowType.appFlow]
}