完成优化登录的优化

完成切换和切回APP数据的及时响应
This commit is contained in:
2026-03-09 08:38:29 +08:00
parent 4079c21371
commit 7f81cb3d7e
5 changed files with 22 additions and 8 deletions

View File

@@ -328,7 +328,7 @@ class TcpClient {
(failure) {
// 处理失败:打印日志或抛出异常
debugPrint('❌ [AuthTcp] 获取设备列表失败:$failure');
_sendAuthPacket();
// _sendAuthPacket();
throw Exception('获取设备列表失败:$failure');
},
(devices) async {
@@ -349,7 +349,7 @@ class TcpClient {
await switchResult.fold(
(failure) {
debugPrint('❌ [AuthTcp] 切换设备失败:$failure');
_sendAuthPacket();
// _sendAuthPacket();
throw Exception('切换设备失败:$failure');
},
(success) {