From 8c60fd84005a10e4f3e69950ccf51fb6c37bc447 Mon Sep 17 00:00:00 2001 From: Silent YANG Date: Tue, 30 Jan 2024 22:32:44 +0800 Subject: [PATCH] update --- src/views/guide/f117/index.vue | 4 +--- src/views/list/flash/index.vue | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) 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 }); }