소스 검색

update 背更新

wangxy 3 달 전
부모
커밋
d7b96f4388
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      pages/newEnglish/index.vue

+ 1 - 1
pages/newEnglish/index.vue

@@ -264,7 +264,7 @@
 	}) {
 		// console.log('播放', url)
 		const cachedPath = await cacheAudio(url);
-		if (cachedPath.includes('.mp3')) {
+		if (cachedPath && cachedPath.includes('.mp3')) {
 			// console.log('地址:', cachedPath)
 			AudioP.play(cachedPath, code);
 		} else {