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/end/default.ts | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/app/components/workflow/nodes/end/default.ts b/app/components/workflow/nodes/end/default.ts
index e8fbb94..25abfb5 100644
--- a/app/components/workflow/nodes/end/default.ts
+++ b/app/components/workflow/nodes/end/default.ts
@@ -1,6 +1,6 @@
import { BlockEnum } from '../../types'
import type { NodeDefault } from '../../types'
-import type { EndNodeType } from './types'
+import { type EndNodeType } from './types'
import { ALL_CHAT_AVAILABLE_BLOCKS, ALL_COMPLETION_AVAILABLE_BLOCKS } from '@/app/components/workflow/blocks'
const nodeDefault: NodeDefault<EndNodeType> = {
@@ -16,10 +16,16 @@
getAvailableNextNodes() {
return []
},
- checkValid() {
+ checkValid(payload: EndNodeType) {
+ let isValid = true
+ let errorMessages = ''
+ if (payload.type) {
+ isValid = true
+ errorMessages = ''
+ }
return {
- isValid: true,
- errorMessage: '',
+ isValid,
+ errorMessage: errorMessages,
}
},
}
--
Gitblit v1.8.0