fix:设置语言包之后同步锁设置信息
This commit is contained in:
parent
c221e2cbdf
commit
e2dc776fd1
@ -25,6 +25,7 @@ import 'package:star_lock/network/api_repository.dart';
|
||||
import 'package:star_lock/tools/baseGetXController.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:star_lock/tools/commonDataManage.dart';
|
||||
import 'package:star_lock/tools/eventBusEventManage.dart';
|
||||
import 'package:star_lock/tools/storage.dart';
|
||||
|
||||
class SpeechLanguageSettingsLogic extends BaseGetXController {
|
||||
@ -58,7 +59,12 @@ class SpeechLanguageSettingsLogic extends BaseGetXController {
|
||||
lockId: state.lockSetInfoData.value.lockId!,
|
||||
);
|
||||
if (entity.errorCode!.codeIsSuccessful) {
|
||||
showSuccess('设置成功'.tr);
|
||||
showSuccess('设置成功'.tr, something: () {
|
||||
state.lockSetInfoData.value.lockSettingInfo?.currentVoiceTimbre?.lang=item.lang;
|
||||
state.lockSetInfoData.value.lockSettingInfo?.currentVoiceTimbre?.timbre=timbre.timbre;
|
||||
eventBus
|
||||
.fire(PassCurrentLockInformationEvent(state.lockSetInfoData.value));
|
||||
});
|
||||
}
|
||||
dismissEasyLoading();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user