Pārlūkot izejas kodu

校对时间报错

natasha 1 nedēļu atpakaļ
vecāks
revīzija
b67a1a823d

+ 11 - 9
src/views/book/courseware/create/components/question/article/Article.vue

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

+ 11 - 9
src/views/book/courseware/create/components/question/dialogue_article/Article.vue

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