记住密码无效问题

This commit is contained in:
DESKTOP-I3JPKHK\wy 2025-04-24 13:48:10 +08:00
parent 6c3669350b
commit f677fa4032
1 changed files with 5 additions and 0 deletions

View File

@ -47,9 +47,14 @@ class _MyInfoState extends State<MyInfo> 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) {