From e67d584f66e6c174224ebc2cfcd3ba503f0e615d Mon Sep 17 00:00:00 2001 From: Silent YANG Date: Mon, 15 Apr 2024 01:08:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AE=80=E7=B9=81BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/list/search-table/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/list/search-table/index.vue b/src/views/list/search-table/index.vue index f1e8da6..0259b89 100644 --- a/src/views/list/search-table/index.vue +++ b/src/views/list/search-table/index.vue @@ -105,7 +105,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'; + import { toSimplified } from 'chinese-simple2traditional'; import { read as xlsxRead, writeFile as xlsxWrite, utils as xlsxUtils } from "xlsx"; const appStore = useAppStore(); @@ -624,7 +624,7 @@ rawEEPROM2.set([(scanlist << 4) + 0], i / 0x10) const mergedArray = new Uint8Array(0x10); - mergedArray.set(stringToUint8Array(_channel.name ? toTraditional(_channel.name) : "", appStore.configuration?.charset).subarray(0, 0x10), 0); + mergedArray.set(stringToUint8Array(_channel.name ? toSimplified(_channel.name) : "", appStore.configuration?.charset).subarray(0, 0x10), 0); rawEEPROM3.set(mergedArray, i) }else{ rawEEPROM.set(hexReverseStringToUint8Array("ffffffffffffffffffffffffffffffff"), i)