Compare commits

...

4 Commits

Author SHA1 Message Date
Silent YANG e6f7819b58 更新版本儿号 2024-04-11 16:21:06 +08:00
Silent YANG d53caaf6ae 将繁体字转换为简体字写入手台 2024-04-11 16:06:42 +08:00
Silent YANG b15a0bec85 yarn add chinese-simple2traditional 2024-04-11 09:00:07 +08:00
Silent YANG fa9cdb3214 update yarn lock 2024-04-11 08:58:29 +08:00
6 changed files with 2041 additions and 29730 deletions

18821
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -21,6 +21,7 @@
"@zxing/text-encoding": "^0.9.0",
"aegis-web-sdk": "^1.39.1",
"axios": "^0.24.0",
"chinese-simple2traditional": "^2.1.0",
"dayjs": "^1.11.5",
"echarts": "^5.4.0",
"electron-squirrel-startup": "^1.0.0",

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
<template>
<a-layout-footer class="footer">
<a href="https://github.com/silenty4ng/k5web" target="_blank">K5Web - V0.1.202402182230</a>
<a href="https://github.com/silenty4ng/k5web" target="_blank">K5Web - V0.1.202404111620</a>
</a-layout-footer>
</template>

View File

@ -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)

4236
yarn.lock

File diff suppressed because it is too large Load Diff