fix: node default

This commit is contained in:
zxhlyh
2025-04-29 16:11:54 +08:00
parent 2613a380b6
commit 66176c4d71
40 changed files with 557 additions and 155 deletions

View File

@ -3,13 +3,13 @@ import type { KnowledgeBaseNodeType } from './types'
import { genNodeMetaData } from '@/app/components/workflow/utils'
import { BlockEnum } from '@/app/components/workflow/types'
const metaData = genNodeMetaData({
sort: 3.1,
type: BlockEnum.KnowledgeBase,
})
const nodeDefault: NodeDefault<KnowledgeBaseNodeType> = {
...genNodeMetaData({
sort: 3.1,
type: BlockEnum.KnowledgeBase,
}),
defaultValue: {
},
metaData,
defaultValue: {},
checkValid() {
return {
isValid: true,