diff --git a/public/pinyin.bin b/public/pinyin.bin
new file mode 100644
index 0000000..137f497
Binary files /dev/null and b/public/pinyin.bin differ
diff --git a/src/views/list/chi/index.vue b/src/views/list/chi/index.vue
index e24ad03..fdf5e16 100644
--- a/src/views/list/chi/index.vue
+++ b/src/views/list/chi/index.vue
@@ -8,6 +8,7 @@
写入 117 字库(K)
写入 118+ 字库(K)
写入 118+ 字库(H)
+ 写入拼音检索表(2Mbit EEPROM可用)
@@ -108,6 +109,21 @@ const restore = async(type: any = 1) => {
await restoreRange(0x02480, binary)
return;
}
+ if(type == 4){
+ fontPacket = await fetch('/pinyin.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;
+ }
}