diff --git a/making_school_asignment_app/lib/page/home_page/children/my_info.dart b/making_school_asignment_app/lib/page/home_page/children/my_info.dart index 918e0f2..29b0d96 100644 --- a/making_school_asignment_app/lib/page/home_page/children/my_info.dart +++ b/making_school_asignment_app/lib/page/home_page/children/my_info.dart @@ -47,9 +47,14 @@ class _MyInfoState extends State with AutomaticKeepAliveClientMixin { child: quickText("确定"), onPressed: () async { try { + var pwd = StorageService.to.read(AppStorageKey.pwd.value); + var account = StorageService.to.read(AppStorageKey.account.value); + UserStore.to.erase(); await StorageService.to.erase(); StorageService.to.write(AppStorageKey.privacyAgreement.value, true); + StorageService.to.write(AppStorageKey.account.value, account); + StorageService.to.write(AppStorageKey.pwd.value, pwd); Navigator.pop(context, "Ok"); Get.offAllNamed(Routes.login); } catch (e) {