提交 bbd56e92 authored 作者: yueweilu's avatar yueweilu

解决二次登录退出登录时 页面卡死问题

上级 c8222423
...@@ -88,7 +88,7 @@ class LoginController extends GetxController { ...@@ -88,7 +88,7 @@ class LoginController extends GetxController {
}); });
/// 测试账号 /// 测试账号
if (kDebugMode) { if (kDebugMode) {
phoneInput.text = '13521054068'; phoneInput.text = '18810760819';
passwordInput.text = '12345678'; passwordInput.text = '12345678';
// phoneInput.text = '17311837355'; // phoneInput.text = '17311837355';
// passwordInput.text = '12345678'; // passwordInput.text = '12345678';
...@@ -151,9 +151,8 @@ class LoginController extends GetxController { ...@@ -151,9 +151,8 @@ class LoginController extends GetxController {
// UserStore.to.profile(), // UserStore.to.profile(),
// ]); // ]);
if (!context.mounted) return; if (context.mounted){
if (context.canPop()){ context.goNamed(Routes.main);
context.pop();
}else { }else {
context.goNamed(Routes.main); context.goNamed(Routes.main);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论