Skip to content

Commit

Permalink
fix 工具页面无法自动生成编码的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleBing committed Jan 6, 2025
1 parent b6414f2 commit afdc2a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v1.30 `2025-01-06`
- fix 工具页面无法自动生成编码的问题

## v1.29 `2024-10-06`
- 添加查询单字与词条重码的词条
- fix 工具保存成 rime 格式时出现
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wubi-dict-editor",
"version": "1.2.9",
"version": "1.3.0",
"private": true,
"author": {
"name": "KyleBing",
Expand Down Expand Up @@ -34,7 +34,7 @@
"config": {
"forge": {
"packagerConfig": {
"appVersion": "1.2.9",
"appVersion": "1.3.0",
"name": "五笔码表助手",
"appCopyright": "[email protected]",
"icon": "./assets/img/appIcon/appicon",
Expand Down
4 changes: 3 additions & 1 deletion view/tool/Tool.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const app = {

// 获取并设置字典文件
ipcRenderer.on('setDictMap', (event, fileContent, fileName, filePath) => {
this.dictMap = new DictMap(fileContent, fileName, filePath)
this.dictMap = new DictMap(null, fileContent)
})
ipcRenderer.send('getDictMap')

Expand Down Expand Up @@ -207,8 +207,10 @@ const app = {

generateCodeForAllWords(){
this.dict.wordsOrigin.forEach(word => {
console.log(word)
word.setCode(this.dictMap.decodeWord(word.word))
})
console.log(this.dictMap)
this.refreshShowingWords()
this.tips.push('编码生成完成')
},
Expand Down

0 comments on commit afdc2a4

Please sign in to comment.