feat(Workflow): 新增工作流节点组件
This commit is contained in:
parent
94952fb924
commit
5e0b2f0fcb
@ -1,7 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import type { IExecutionNodeStatusItem } from "~/composables/worklfow/node/node.interface";
|
||||
|
||||
const data = defineModel<INodeData<NodeTypeEnum.Markdown2Html>>("data");
|
||||
const data = defineModel<INodeData<NodeTypeEnum.Markdown2Html>>("data",{default: {}});
|
||||
|
||||
const props = defineProps<{
|
||||
nodeResult: IExecutionNodeStatusItem
|
||||
@ -18,7 +18,7 @@ const textContent = computed(() => {
|
||||
|
||||
const initInputs = () => {
|
||||
if(!data.value?.inputs){
|
||||
Object.assign(data.value.inputs, { markdown: "" });
|
||||
Object.assign(data.value, { inputs:{ markdown: "" }});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user