From f0fa32aeaadbd96c3f519f84c4cce9efabb41761 Mon Sep 17 00:00:00 2001 From: SikongJueluo Date: Wed, 14 May 2025 19:40:37 +0800 Subject: [PATCH] fix: jtag download failed --- src/components/UploadCard.vue | 21 +++++++++++---------- src/components/equipments/MotherBoard.vue | 1 + 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/UploadCard.vue b/src/components/UploadCard.vue index d219bb4..82bf33d 100644 --- a/src/components/UploadCard.vue +++ b/src/components/UploadCard.vue @@ -25,6 +25,17 @@ import { useEquipments } from "@/stores/equipments"; import { useDialogStore } from "@/stores/dialog"; import { isNull, isUndefined } from "lodash"; +interface Props { + uploadEvent?: Function; + downloadEvent?: Function; + maxMemory?: number; + defaultFile?: string; +} + +const props = withDefaults(defineProps(), { + maxMemory: 4, +}); + const emits = defineEmits<{ finishedUpload: [file: File]; }>(); @@ -101,16 +112,6 @@ async function handleClick(event: Event): Promise { } } -interface Props { - uploadEvent?: Function; - downloadEvent?: Function; - maxMemory?: number; - defaultFile?: File; -} - -const props = withDefaults(defineProps(), { - maxMemory: 4, -});