fix:修复添加完锁之后查询锁设置失败时跳转页面白屏的问题
This commit is contained in:
parent
278e970931
commit
f23fdea62a
@ -517,6 +517,20 @@ class SaveLockLogic extends BaseGetXController {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
Future<void>.delayed(const Duration(seconds: 1), () {
|
||||||
|
Get.close(state.isFromMap == 1
|
||||||
|
? (CommonDataManage().seletLockType == 0 ? 4 : 5)
|
||||||
|
: (CommonDataManage().seletLockType == 0 ? 5 : 6));
|
||||||
|
});
|
||||||
|
//刚刚配对完,需要对开锁页锁死 2 秒
|
||||||
|
Future<void>.delayed(const Duration(milliseconds: 200), () {
|
||||||
|
if (Get.isRegistered<LockDetailLogic>()) {
|
||||||
|
Get.find<LockDetailLogic>()
|
||||||
|
.functionBlocker
|
||||||
|
.countdownProhibited(duration: const Duration(seconds: 2));
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user