Modify the name field of word

This commit is contained in:
zyronon
2023-12-13 17:17:59 +08:00
parent 998c1196b5
commit 4179bfaf5b
22 changed files with 115759 additions and 886 deletions

View File

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

View File

@@ -48,7 +48,7 @@ defineExpose({scrollToBottom, scrollToItem})
</template>
<template v-slot="{ item, index }">
<div class="item-title">
<span class="word" :class="!showWord && 'text-shadow'">{{ item.name }}</span>
<span class="word" :class="!showWord && 'text-shadow'">{{ item.word }}</span>
<span class="phonetic">{{ item.usphone }}</span>
<VolumeIcon class="volume" @click="playWordAudio(item.name)"></VolumeIcon>
</div>