diff --git a/front/components/Drawer/FileShareDrawer.vue b/front/components/Drawer/FileShareDrawer.vue index 3484af4..3f9a43a 100644 --- a/front/components/Drawer/FileShareDrawer.vue +++ b/front/components/Drawer/FileShareDrawer.vue @@ -8,7 +8,7 @@ import FileShareHandle from '~/components/Preprocessing/FileShareHandle.vue'; const props = defineProps<{ hide: () => void file: File - onFileHandle: ({ data, type }: { data: any, type: string }) => void + onFileHandle: ({ type, config }: { type: string, config: any }) => void }>() const isImage = computed(() => props.file.type.startsWith('image/')) diff --git a/front/components/Preprocessing/FileShareHandle.vue b/front/components/Preprocessing/FileShareHandle.vue index 0c72bf7..91ecebe 100644 --- a/front/components/Preprocessing/FileShareHandle.vue +++ b/front/components/Preprocessing/FileShareHandle.vue @@ -6,7 +6,7 @@ import FormButton from '../Field/FormButton.vue'; const props = defineProps<{ hide: () => void file: File - onFileHandle: ({ data, type }: { data: any, type: string }) => void + onFileHandle: ({ type, config }: { type: string, config: any }) => void }>() @@ -42,7 +42,7 @@ const props = defineProps<{ 提交