diff --git a/node/format4.cjs b/node/format4.cjs index 55cd091a..868b4f79 100644 --- a/node/format4.cjs +++ b/node/format4.cjs @@ -22,7 +22,7 @@ en2zh_CN.map(v => { if (rIndex === -1) { // let data = { // id: allNew.length, - // word: v.name, + // word: v.word, // phonetic0: v.usphone, // phonetic1: v.ukphone, // trans: [] @@ -46,7 +46,7 @@ en2zh_CN.map(v => { // } // allNew.push() - // minNew.push(v.name) + // minNew.push(v.word) if (!v.name.includes(' ')){ notContain.push(v.name) diff --git a/src/components/dialog/WordListDialog.vue b/src/components/dialog/WordListDialog.vue index 8c72e80d..d09f3038 100644 --- a/src/components/dialog/WordListDialog.vue +++ b/src/components/dialog/WordListDialog.vue @@ -28,7 +28,7 @@ onMounted(() => { if (!w.trans.length) { requestIdleCallback(() => { if (list.length) { - let res = runtimeStore.translateWordList.find(a => a.name === w.name) + let res = runtimeStore.translateWordList.find(a => a.word === w.word) if (res) w = Object.assign(w, res) count++ if (count === list.length) { diff --git a/src/components/list/WordList.vue b/src/components/list/WordList.vue index 9217ea13..5c7f3b62 100644 --- a/src/components/list/WordList.vue +++ b/src/components/list/WordList.vue @@ -48,7 +48,7 @@ defineExpose({scrollToBottom, scrollToItem})