Browse Source

bug fix: task status update failed after data saved

master
filesite 8 months ago
parent
commit
659f2ebb11
  1. 2
      heroUnion.mjs

2
heroUnion.mjs

@ -341,7 +341,7 @@ class HeroUnion { @@ -341,7 +341,7 @@ class HeroUnion {
//更新任务notified状态以及notify_time通知次数
let taskIndex = this.tasks.findIndex((item) => item.id == task.id);
if (taskIndex) {
if (taskIndex > -1) {
this.tasks[taskIndex].notified = notified;
this.tasks[taskIndex].notify_time ++;
}

Loading…
Cancel
Save