From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/workflow/nodes/if-else/default.ts | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/app/components/workflow/nodes/if-else/default.ts b/app/components/workflow/nodes/if-else/default.ts
index 1be8059..8d98f69 100644
--- a/app/components/workflow/nodes/if-else/default.ts
+++ b/app/components/workflow/nodes/if-else/default.ts
@@ -1,6 +1,7 @@
import { BlockEnum, type NodeDefault } from '../../types'
import { type IfElseNodeType, LogicalOperator } from './types'
import { isEmptyRelatedOperator } from './utils'
+import { TransferMethod } from '@/types/app'
import { ALL_CHAT_AVAILABLE_BLOCKS, ALL_COMPLETION_AVAILABLE_BLOCKS } from '@/app/components/workflow/blocks'
const i18nPrefix = 'workflow.errorMsg'
@@ -78,3 +79,18 @@
}
export default nodeDefault
+
+export const FILE_TYPE_OPTIONS = [
+ { value: 'image', i18nKey: 'image' },
+ { value: 'document', i18nKey: 'doc' },
+ { value: 'audio', i18nKey: 'audio' },
+ { value: 'video', i18nKey: 'video' },
+]
+
+export const TRANSFER_METHOD = [
+ { value: TransferMethod.local_file, i18nKey: 'localUpload' },
+ { value: TransferMethod.remote_url, i18nKey: 'url' },
+]
+
+export const SUB_VARIABLES = ['type', 'size', 'name', 'url', 'extension', 'mime_type', 'transfer_method']
+export const OUTPUT_FILE_SUB_VARIABLES = SUB_VARIABLES.filter(key => key !== 'transfer_method')
--
Gitblit v1.8.0