Parcourir la source

修改文章校对句子保存 存在bug

秦鹏 il y a 3 ans
Parent
commit
d6b12a15e0
1 fichiers modifiés avec 6 ajouts et 4 suppressions
  1. 6 4
      src/components/Adult/inputModules/ArticleTemChs/index.vue

+ 6 - 4
src/components/Adult/inputModules/ArticleTemChs/index.vue

@@ -317,13 +317,15 @@ export default {
         return;
       }
       this.compareloading = true;
-      compareSenTenceTime({ matchList: JSON.stringify(this.compareData) }).then(
-        (res) => {
+      compareSenTenceTime({ matchList: JSON.stringify(this.compareData) })
+        .then((res) => {
           console.log(res);
           this.compareloading = false;
           this.curQue.wordTime = res.data.result;
-        }
-      );
+        })
+        .catch(() => {
+          this.compareloading = false;
+        });
     },
     // 校对时间
     compareTime(type) {