优化了tcp实时更新对UI线程的压力和对用弹窗的重复弹窗的影响。
更换了路径规划的的经纬度的字段名和取操作的名字更换。
This commit is contained in:
@@ -62,8 +62,11 @@ class AuthCubit extends Cubit<AuthState> {
|
||||
|
||||
if (user != null) {
|
||||
// 🔥 冷启动时重新初始化 TCP 连接
|
||||
await tcp.initializeTcp(host: TCPConsts.TCP_IP, port: TCPConsts.TCP_PORT);
|
||||
|
||||
await tcp.initializeTcp(
|
||||
host: TCPConsts.TCP_IP,
|
||||
port: TCPConsts.TCP_PORT,
|
||||
);
|
||||
|
||||
// 2. 同步全局 App 状态
|
||||
appCubit.setAuth(user);
|
||||
// 3. 进入已登录状态
|
||||
|
||||
Reference in New Issue
Block a user