diff --git a/src/views/guide/f117/index.vue b/src/views/guide/f117/index.vue index 4f26824..684d817 100644 --- a/src/views/guide/f117/index.vue +++ b/src/views/guide/f117/index.vue @@ -259,9 +259,7 @@ const iFlashIt = async () => { await sendPacket(_connect, _data); await readPacket(_connect, 0x18) await flash_flashFirmware(_connect, unpack(binary)) - if(appStore.connectPort){ - appStore.updateSettings({ connectPort: _connect }); - } + appStore.updateSettings({ connectPort: _connect }); state.flashIt = true state.loading = false } diff --git a/src/views/list/flash/index.vue b/src/views/list/flash/index.vue index a4f4395..f1aefbd 100644 --- a/src/views/list/flash/index.vue +++ b/src/views/list/flash/index.vue @@ -88,9 +88,7 @@ const flashIt = async () => { const textarea = document?.getElementById('statusArea'); if(textarea)textarea.scrollTop = textarea?.scrollHeight; }) - if(appStore.connectPort){ - appStore.updateSettings({ connectPort: _connect }); - } + appStore.updateSettings({ connectPort: _connect }); }