fix: dict voice not exist

This commit is contained in:
Gabe Yuan
2024-02-21 15:41:27 +08:00
parent 4a6e902684
commit 439900154b

View File

@@ -29,7 +29,7 @@ export default function DictCont({ dictResult }) {
<Typography component="div">
<Typography>
{dictResult.voice
.map(Object.entries)
?.map(Object.entries)
.map((item) => item[0])
.map(([key, val]) => `${phonicMap[key] || key} ${val}`)
.join(" ")}