mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
feat: workflow use common last run
This commit is contained in:
10
web/service/utils.ts
Normal file
10
web/service/utils.ts
Normal 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]
|
||||
}
|
||||
Reference in New Issue
Block a user