Explorar o código

update 背更新

wangxy hai 3 meses
pai
achega
d7b96f4388
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {