From f677fa403210b564ae9687974e807039de1e4137 Mon Sep 17 00:00:00 2001 From: "DESKTOP-I3JPKHK\\wy" <1111> Date: Thu, 24 Apr 2025 13:48:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=B0=E4=BD=8F=E5=AF=86=E7=A0=81=E6=97=A0?= =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lib/page/home_page/children/my_info.dart | 5 +++++ 1 file changed, 5 insertions(+) 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) {