fix: Fix type errors
This commit is contained in:
parent
1a704f1c25
commit
919a3eee5d
@ -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'
|
||||||
|
|||||||
@ -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)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user