浏览代码

Merge remote-tracking branch 'origin/2025鹅状元dev' into 2025鹅状元dev

wangguoyu 3 月之前
父节点
当前提交
571f45ebb7
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      pages/newEnglish/components/beiPage.vue
  2. 1 1
      pages/newEnglish/index.vue

+ 1 - 1
pages/newEnglish/components/beiPage.vue

@@ -122,7 +122,7 @@
 		}
 		httpApi.getWordWancheng({
 			jieId: props.pageData.jieId,
-			wordId: props.pageData.wordId
+			wordId: props.activeWord.id
 		})
 	}
 

+ 1 - 1
pages/newEnglish/index.vue

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