放开日语限制

This commit is contained in:
zyronon
2024-01-17 12:05:14 +08:00
parent b94e979689
commit d105229a98
5 changed files with 11 additions and 43 deletions

View File

@@ -53,7 +53,7 @@ defineExpose({scrollToBottom, scrollToItem})
<VolumeIcon class="volume" @click="playWordAudio(item.word)"></VolumeIcon>
</div>
<div class="item-sub-title" v-if="item.trans.length && showTranslate">
<div v-for="v in item.trans">{{ (v.pos ? v.pos + '.' : '') + v.cn }}</div>
<div v-for="v in item.trans">{{ (v.pos ? v.pos + '.' : '') + (v.cn || v.en)}}</div>
</div>
</template>
<template v-slot:suffix="{ item, index }">

View File

@@ -162,7 +162,7 @@ defineExpose({del, showWord, hideWord, play})
}"
>
<div class="translate-item" v-for="(v,i) in word.trans">
<span>{{ (v.pos ? v.pos + '.' : '') + v.cn }}</span>
<span>{{ (v.pos ? v.pos + '.' : '') + (v.cn || v.en) }}</span>
<!-- <div class="volumeIcon">-->
<!-- <Tooltip-->
<!-- v-if="i === word.trans.length - 1"-->