浏览代码

字词卡片音频

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