mcy_new #1

Merged
wangyang merged 179 commits from mcy_new into master 2025-08-28 10:10:45 +08:00
1 changed files with 5 additions and 0 deletions
Showing only changes of commit f677fa4032 - Show all commits

View File

@ -47,9 +47,14 @@ class _MyInfoState extends State<MyInfo> with AutomaticKeepAliveClientMixin {
child: quickText("确定"), child: quickText("确定"),
onPressed: () async { onPressed: () async {
try { try {
var pwd = StorageService.to.read(AppStorageKey.pwd.value);
var account = StorageService.to.read(AppStorageKey.account.value);
UserStore.to.erase(); UserStore.to.erase();
await StorageService.to.erase(); await StorageService.to.erase();
StorageService.to.write(AppStorageKey.privacyAgreement.value, true); 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"); Navigator.pop(context, "Ok");
Get.offAllNamed(Routes.login); Get.offAllNamed(Routes.login);
} catch (e) { } catch (e) {