Преглед изворни кода

清除音频和重新生成分词时清除字幕时间结果

natasha пре 1 месец
родитељ
комит
7a09290d61

+ 4 - 0
src/views/book/courseware/create/components/question/article/Article.vue

@@ -568,6 +568,8 @@ export default {
             .then(() => {
               this.handleResetSet();
               this.data.notes_list.option = [];
+              this.isWordTime = false;
+              this.data.wordTime = [];
             })
             .catch(() => {});
         }
@@ -786,6 +788,8 @@ export default {
         .then(() => {
           this.data.mp3_list = [];
           this.data.file_id_list = [];
+          this.isWordTime = false;
+          this.data.wordTime = [];
         })
         .catch(() => {});
     },

+ 4 - 0
src/views/book/courseware/create/components/question/dialogue_article/Article.vue

@@ -976,6 +976,8 @@ export default {
           .then(() => {
             this.handleResetSet();
             this.data.notes_list.option = [];
+            this.isWordTime = false;
+            this.data.wordTime = [];
           })
           .catch(() => {});
       }
@@ -1194,6 +1196,8 @@ export default {
       })
         .then(() => {
           this.data.mp3_list = [];
+          this.isWordTime = false;
+          this.data.wordTime = [];
         })
         .catch(() => {});
     },