mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
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) {
|
||||
stopRecording()
|
||||
recorderStatus.value = 'STOP'
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue