完成web和app权限交换-初步
This commit is contained in:
@@ -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>()));
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user