Browse Source

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

qinpeng 2 years ago
parent
commit
2d501e9a96
2 changed files with 6 additions and 6 deletions
  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"]
+                //   : "";
               }
             });
           });