完成web和app权限交换-初步

This commit is contained in:
2026-03-13 20:29:06 +08:00
parent 67b9907eec
commit 6099fcc1e2
3 changed files with 74 additions and 14 deletions

View File

@@ -185,8 +185,8 @@ Future<void> init() async {
sl.registerLazySingleton(() => AppUserCubit()); // AuthCubit 依赖它,必须先注册
sl.registerLazySingleton(() => GetDeviceLocationUseCase(sl()));
sl.registerLazySingleton(() => DevicesCubit(sl(), sl(), sl(), sl(), sl(), sl(), sl(), sl(), sl(), sl(), sl(), sl(),sl(),sl(),sl()));
sl.registerFactory(() => RemoteControlCubit(sl(),sl()));
/* // 工厂模式(留存,每次获取新实例)
sl.registerFactory(() => RemoteControlCubit(sl(),sl(),sl()));
/* // 工厂模式(留存,每次获取新实例)r
sl.registerFactory(() => DeviceStatusBloc(sl<NetMessageDispatcher>()));
*/