diff --git a/public/pinyin_plus.bin b/public/pinyin_plus.bin
new file mode 100644
index 0000000..b9b3738
Binary files /dev/null and b/public/pinyin_plus.bin differ
diff --git a/src/views/list/chi/index.vue b/src/views/list/chi/index.vue
index 3963dad..30f7976 100644
--- a/src/views/list/chi/index.vue
+++ b/src/views/list/chi/index.vue
@@ -3,12 +3,13 @@
-
+ {state.showHide += 1}">
写入 117 字库
写入 118+ 字库
写入拼音检索表(2Mbit EEPROM可用)
+ 写入拼音检索表(测试)
@@ -27,7 +28,8 @@ const appStore = useAppStore();
const state = reactive({
status: "点击写入按钮写入字库到设备
",
- eepromType: ""
+ eepromType: "",
+ showHide: 0
})
const restoreRange = async (start: any = 0, uint8Array: any) => {
@@ -120,6 +122,21 @@ const restore = async(type: any = 1) => {
await restoreRange(0x20000, binary)
return;
}
+ if(type == 5){
+ fontPacket = await fetch('/pinyin_plus.bin')
+ const reader = fontPacket.body.getReader();
+ const chunks = [];
+ while(true) {
+ const {done, value} = await reader.read();
+ if (done) {
+ break;
+ }
+ chunks.push(...value)
+ }
+ const binary = new Uint8Array(chunks)
+ await restoreRange(0x20000, binary)
+ return;
+ }
}