zhangjie 1 рік тому
батько
коміт
d1dc236bb1

+ 1 - 1
src/modules/question/components/GptQuestionDialog.vue

@@ -312,7 +312,7 @@ export default {
         this.toPage(1);
         return;
       }
-      this.hasTaskRunning = res.data.status === "RUNNING";
+      this.hasTaskRunning = ["RUNNING", "INIT"].includes(res.data.status);
       this.addSetTime(() => {
         this.checkTaskStatus();
       }, 3 * 1000);

+ 1 - 1
src/modules/question/components/GptQuestionEditDialog.vue

@@ -271,7 +271,7 @@ export default {
         this.getResult();
         return;
       }
-      this.hasTaskRunning = res.data.status === "RUNNING";
+      this.hasTaskRunning = ["RUNNING", "INIT"].includes(res.data.status);
       this.addSetTime(() => {
         this.checkTaskStatus();
       }, 3 * 1000);