Explorar el Código

取消音频 获取百度汉语地址

qinpeng hace 2 años
padre
commit
2d501e9a96
Se han modificado 2 ficheros con 6 adiciones y 6 borrados
  1. 3 3
      src/components/common/Hanzi.vue
  2. 3 3
      src/components/common/WordPhraseDetail.vue

+ 3 - 3
src/components/common/Hanzi.vue

@@ -171,9 +171,9 @@ export default {
               if (itemss.key == "pronunciation") {
                 // 音频
 
-                _this.mp3Url = itemss.objects[0]["@value"]
-                  ? itemss.objects[0]["@value"]
-                  : "";
+                // _this.mp3Url = itemss.objects[0]["@value"]
+                //   ? itemss.objects[0]["@value"]
+                //   : "";
               } else if (itemss.key == "definition") {
                 // 释义
                 _this.paraphrase = itemss.objects;

+ 3 - 3
src/components/common/WordPhraseDetail.vue

@@ -407,9 +407,9 @@ export default {
             items.attrs.forEach((itemss) => {
               if (itemss.key == "pronunciation") {
                 // 音频
-                _this.mp3Url = itemss.objects[0]["@value"]
-                  ? itemss.objects[0]["@value"]
-                  : "";
+                // _this.mp3Url = itemss.objects[0]["@value"]
+                //   ? itemss.objects[0]["@value"]
+                //   : "";
               }
             });
           });