Browse Source

update 背更新

wangxy 3 months ago
parent
commit
d7b96f4388
1 changed files with 1 additions and 1 deletions
  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 {