fix: jtag download failed
This commit is contained in:
parent
9657aacf83
commit
f0fa32aeaa
|
@ -25,6 +25,17 @@ import { useEquipments } from "@/stores/equipments";
|
||||||
import { useDialogStore } from "@/stores/dialog";
|
import { useDialogStore } from "@/stores/dialog";
|
||||||
import { isNull, isUndefined } from "lodash";
|
import { isNull, isUndefined } from "lodash";
|
||||||
|
|
||||||
|
interface Props {
|
||||||
|
uploadEvent?: Function;
|
||||||
|
downloadEvent?: Function;
|
||||||
|
maxMemory?: number;
|
||||||
|
defaultFile?: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
const props = withDefaults(defineProps<Props>(), {
|
||||||
|
maxMemory: 4,
|
||||||
|
});
|
||||||
|
|
||||||
const emits = defineEmits<{
|
const emits = defineEmits<{
|
||||||
finishedUpload: [file: File];
|
finishedUpload: [file: File];
|
||||||
}>();
|
}>();
|
||||||
|
@ -101,16 +112,6 @@ async function handleClick(event: Event): Promise<void> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Props {
|
|
||||||
uploadEvent?: Function;
|
|
||||||
downloadEvent?: Function;
|
|
||||||
maxMemory?: number;
|
|
||||||
defaultFile?: File;
|
|
||||||
}
|
|
||||||
|
|
||||||
const props = withDefaults(defineProps<Props>(), {
|
|
||||||
maxMemory: 4,
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="postcss">
|
<style scoped lang="postcss">
|
||||||
|
|
|
@ -163,6 +163,7 @@ defineExpose({
|
||||||
class="bg-base-200"
|
class="bg-base-200"
|
||||||
upload-event={uploadBitstream}
|
upload-event={uploadBitstream}
|
||||||
download-event={downloadBitstream}
|
download-event={downloadBitstream}
|
||||||
|
defaultFile={eqps.jtagBitstream}
|
||||||
onFinishedUpload={(file: File) => {
|
onFinishedUpload={(file: File) => {
|
||||||
eqps.jtagBitstream = file;
|
eqps.jtagBitstream = file;
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue