Browse Source

fix: 修复自动运行倒计时逻辑,确保在非等待间隔阶段返回null

QLHazyCoder 4 months ago
parent
commit
a827ede6f4
1 changed files with 4 additions and 0 deletions
  1. 4 0
      sidepanel/sidepanel.js

+ 4 - 0
sidepanel/sidepanel.js

@@ -1061,6 +1061,10 @@ function getActiveAutoRunCountdown() {
     };
     };
   }
   }
 
 
+  if (currentAutoRun.phase !== 'waiting_interval') {
+    return null;
+  }
+
   if (!Number.isFinite(currentAutoRun.countdownAt)) {
   if (!Number.isFinite(currentAutoRun.countdownAt)) {
     return null;
     return null;
   }
   }