From d53caaf6aeb527bb4214a79f3fa3ebb8237fc649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=9A=E7=8E=89=E5=B8=86?= Date: Thu, 11 Apr 2024 16:06:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E7=B9=81=E4=BD=93=E5=AD=97=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E4=B8=BA=E7=AE=80=E4=BD=93=E5=AD=97=E5=86=99=E5=85=A5?= =?UTF-8?q?=E6=89=8B=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/list/search-table/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/list/search-table/index.vue b/src/views/list/search-table/index.vue index e8684dd..5de8197 100644 --- a/src/views/list/search-table/index.vue +++ b/src/views/list/search-table/index.vue @@ -88,6 +88,7 @@ import { eeprom_read, uint8ArrayToHexReverseString, uint8ArrayToString, hexReverseStringToUint8Array, stringToUint8Array, eeprom_write, eeprom_reboot, eeprom_init } from '@/utils/serial.js'; import { useAppStore } from '@/store'; import { MoveIcon } from 'tdesign-icons-vue-next'; + import { toTraditional } from 'chinese-simple2traditional'; const appStore = useAppStore(); @@ -605,7 +606,7 @@ rawEEPROM2.set([(scanlist << 4) + 0], i / 0x10) const mergedArray = new Uint8Array(0x10); - mergedArray.set(stringToUint8Array(_channel.name ?? "", appStore.configuration?.charset).subarray(0, 0x10), 0); + mergedArray.set(stringToUint8Array(_channel.name ? toTraditional(_channel.name) : "", appStore.configuration?.charset).subarray(0, 0x10), 0); rawEEPROM3.set(mergedArray, i) }else{ rawEEPROM.set(hexReverseStringToUint8Array("ffffffffffffffffffffffffffffffff"), i)