diff --git a/ui/src/components/ai-chat/component/chat-input-operate/index.vue b/ui/src/components/ai-chat/component/chat-input-operate/index.vue index 2c320a0c1..7cbb0f404 100644 --- a/ui/src/components/ai-chat/component/chat-input-operate/index.vue +++ b/ui/src/components/ai-chat/component/chat-input-operate/index.vue @@ -467,7 +467,7 @@ const switchMicrophone = (status: boolean) => { } } -const TouchEnd = (bool: Boolean) => { +const TouchEnd = (bool?: Boolean) => { if (bool) { stopRecording() recorderStatus.value = 'STOP' diff --git a/ui/src/workflow/nodes/condition-node/index.vue b/ui/src/workflow/nodes/condition-node/index.vue index 0cc1eaca8..8d90bb9ac 100644 --- a/ui/src/workflow/nodes/condition-node/index.vue +++ b/ui/src/workflow/nodes/condition-node/index.vue @@ -161,7 +161,7 @@ import type { FormInstance } from 'element-plus' import { ref, computed, onMounted, nextTick } from 'vue' import { randomId } from '@/utils/utils' import { compareList } from '@/workflow/common/data' -import { type DraggableEvent, type UseDraggableReturn, VueDraggable } from 'vue-draggable-plus' +import { VueDraggable } from 'vue-draggable-plus' const props = defineProps<{ nodeModel: any }>() const form = { @@ -238,8 +238,8 @@ const validate = () => { }) } -function onEnd(evt: DraggableEvent) { - const { oldIndex, newIndex, clonedData } = evt +function onEnd(event?: any) { + const { oldIndex, newIndex, clonedData } = event if (oldIndex === undefined || newIndex === undefined) return const list = cloneDeep(props.nodeModel.properties.node_data.branch)