机器状态 优化

This commit is contained in:
mmc
2026-03-04 10:09:58 +08:00
parent 34b4c2bcbc
commit d44493b256
2 changed files with 143 additions and 105 deletions

View File

@@ -39,7 +39,7 @@ class AuthCubit extends Cubit<AuthState> {
if (user != null) {
// 1. 建立 TCP 连接 (远程控制)
tcp.connect(host: TCPConsts.TCP_IP, port: TCPConsts.TCP_PORT);
await _authTcpDatasource.sendAuthPacket();//包括发送认证包和获取列表和切换函数
//await _authTcpDatasource.sendAuthPacket();//包括发送认证包和获取列表和切换函数
// 2. 同步全局 App 状态
appCubit.setAuth(user);
// 3. 进入已登录状态