@@ -122,7 +122,7 @@
}
httpApi.getWordWancheng({
jieId: props.pageData.jieId,
- wordId: props.pageData.wordId
+ wordId: props.activeWord.id
})
@@ -265,7 +265,7 @@
console.log('播放', url)
console.log('播放', code)
const cachedPath = await cacheAudio(url);
- if (cachedPath.includes('.mp3')) {
+ if (cachedPath && cachedPath.includes('.mp3')) {
// console.log('地址:', cachedPath)
AudioP.play(cachedPath, code);
} else {