소스 검색

字词卡片音频

natasha 1 년 전
부모
커밋
3f641c02e2
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/views/wordcard/writeTable.vue

+ 3 - 3
src/views/wordcard/writeTable.vue

@@ -336,10 +336,10 @@ export default {
   },
   //生命周期 - 创建完成(可以访问当前this实例)
   created() {
-    if (this.data.pinyin) {
-      let MethodName = 'tool-PinyinToVoiceFile';
+    if (this.data.con) {
+      let MethodName = 'tool-TextToVoiceFile';
       let datas = {
-        pinyin: this.data.pinyin.split(' ').join(','),
+        text: this.data.con,
       };
       getLogin(MethodName, datas).then((res) => {
         if (res.status === 1) {