fix:修复 添加没有默认是设置多长时间,初始化前锁上设的什么时间在添加后就显示这个时间。如是关闭的再添加显示为0秒,打开进入界面异常

This commit is contained in:
anfe 2024-06-04 18:32:36 +08:00
parent 7d6b080573
commit 3035a53ff7

View File

@ -187,6 +187,10 @@ class AutomaticBlockingLogic extends BaseGetXController {
} else {
state.canNext.value = false;
}
if (!openLock && (state.autoLockTime.value.isEmpty || state.autoLockTime.value == '0')) {
state.autoLockTime.value = '5';
}
}
@override