记住密码无效问题
This commit is contained in:
parent
6c3669350b
commit
f677fa4032
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue