瀏覽代碼

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 {