add(com/wireless-debugger)

- wd/docs
- add bins
- add taobao to social-icon
This commit is contained in:
kerms 2024-06-20 10:14:46 +08:00 committed by History Extractor
parent 9f14031583
commit cc72d6cff4
1 changed files with 12 additions and 15 deletions

View File

@ -91,18 +91,17 @@ const connectedBaud = ref("")
const programConnected = ref(false) const programConnected = ref(false)
const serialSupported = ref(false); const serialSupported = ref(false);
const imageOption = [ type ImageOption = {
{ value: string;
value: '无线DAP-LINK_v0.3.1_esp32c3.bin', link: string;
link: '/downloads/wireless_proxy_v0.3.1_esp32c3.bin', target: string;
target: 'ESP32-C3', };
}, {
value: '无线DAP-LINK_v0.3.1_esp32.bin', const props = defineProps<{
link: '/downloads/wireless_proxy_v0.3.1_esp32.bin', imageOptions: ImageOption[];
target: 'ESP32', }>();
},
] const imageSelect = ref(props.imageOptions[0]);
const imageSelect = ref(imageOption[0]);
let transport: Transport | null; let transport: Transport | null;
@ -463,8 +462,6 @@ async function reset() {
<template> <template>
<div> <div>
<h1>在线ESP32烧录<span v-if="serialSupported">免环境配置免装软件</span></h1>
<el-divider></el-divider>
<div v-show="serialSupported"> <div v-show="serialSupported">
<el-tabs> <el-tabs>
<el-tab-pane label="烧录" :disabled="consoleStarted"> <el-tab-pane label="烧录" :disabled="consoleStarted">
@ -479,7 +476,7 @@ async function reset() {
placeholder="选择固件" placeholder="选择固件"
> >
<el-option <el-option
v-for="item in imageOption" v-for="item in imageOptions"
:key="item.value" :key="item.value"
:label="item.value" :label="item.value"
:value="item" :value="item"