fix: Fix type errors

This commit is contained in:
wangdan-fit2cloud 2025-04-08 10:52:23 +08:00
parent 1a704f1c25
commit 919a3eee5d
2 changed files with 4 additions and 4 deletions

View File

@ -467,7 +467,7 @@ const switchMicrophone = (status: boolean) => {
} }
} }
const TouchEnd = (bool: Boolean) => { const TouchEnd = (bool?: Boolean) => {
if (bool) { if (bool) {
stopRecording() stopRecording()
recorderStatus.value = 'STOP' recorderStatus.value = 'STOP'

View File

@ -161,7 +161,7 @@ import type { FormInstance } from 'element-plus'
import { ref, computed, onMounted, nextTick } from 'vue' import { ref, computed, onMounted, nextTick } from 'vue'
import { randomId } from '@/utils/utils' import { randomId } from '@/utils/utils'
import { compareList } from '@/workflow/common/data' 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 props = defineProps<{ nodeModel: any }>()
const form = { const form = {
@ -238,8 +238,8 @@ const validate = () => {
}) })
} }
function onEnd(evt: DraggableEvent) { function onEnd(event?: any) {
const { oldIndex, newIndex, clonedData } = evt const { oldIndex, newIndex, clonedData } = event
if (oldIndex === undefined || newIndex === undefined) return if (oldIndex === undefined || newIndex === undefined) return
const list = cloneDeep(props.nodeModel.properties.node_data.branch) const list = cloneDeep(props.nodeModel.properties.node_data.branch)