This commit is contained in:
zyronon
2025-09-11 01:11:19 +08:00
parent 8abbc899ec
commit 5d992a47ec
2 changed files with 9 additions and 2 deletions

View File

@@ -368,7 +368,8 @@ function onContextMenu(e: MouseEvent, sentence: Sentence, i, j, w) {
onClick: () => {
sectionIndex = i
sentenceIndex = j
wordIndex = w
//todo 这里有可能是符号,要处理下
wordIndex = w + 1
stringIndex = 0
input = wrong = ''
isEnd = isSpace = false
@@ -442,6 +443,12 @@ function onContextMenu(e: MouseEvent, sentence: Sentence, i, j, w) {
})
}
},
{
label: "有道词典",
onClick: () => {
window.open(`https://www.youdao.com/result?word=${sentence.text}&lang=en`, '_blank')
}
},
]
});
}