Kaynağa Gözat

fix: 修复了在稳定性训练中修改训练时间后会发生胜利条件无法触发的BUG

YuJing 1 hafta önce
ebeveyn
işleme
09cce54ec5

+ 1 - 1
features/feature/src/main/ets/viewModel/PageVm/stabilityViewModel.ets

@@ -74,7 +74,7 @@ export class stabilityViewModel{
       this.timer = setInterval(() => {
         this.trainTime += 1
 
-        if(this.trainTime == this.stabilityStorage.trainingTime) {
+        if(this.trainTime >= this.stabilityStorage.trainingTime) {
           this.gameOver(true)
         }