From cc72d6cff4761006e1b68ac04650941245371d31 Mon Sep 17 00:00:00 2001 From: kerms Date: Thu, 20 Jun 2024 10:14:46 +0800 Subject: [PATCH] add(com/wireless-debugger) - wd/docs - add bins - add taobao to social-icon --- esp-flasher/EspFlasher.vue | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/esp-flasher/EspFlasher.vue b/esp-flasher/EspFlasher.vue index e7fad5a..ff5b14e 100644 --- a/esp-flasher/EspFlasher.vue +++ b/esp-flasher/EspFlasher.vue @@ -91,18 +91,17 @@ const connectedBaud = ref("") const programConnected = ref(false) const serialSupported = ref(false); -const imageOption = [ - { - value: '无线DAP-LINK_v0.3.1_esp32c3.bin', - link: '/downloads/wireless_proxy_v0.3.1_esp32c3.bin', - target: 'ESP32-C3', - }, { - value: '无线DAP-LINK_v0.3.1_esp32.bin', - link: '/downloads/wireless_proxy_v0.3.1_esp32.bin', - target: 'ESP32', - }, -] -const imageSelect = ref(imageOption[0]); +type ImageOption = { + value: string; + link: string; + target: string; +}; + +const props = defineProps<{ + imageOptions: ImageOption[]; +}>(); + +const imageSelect = ref(props.imageOptions[0]); let transport: Transport | null; @@ -463,8 +462,6 @@ async function reset() {