This commit is contained in:
2024-06-02 13:09:32 +00:00
committed by GitHub
parent 26415d9349
commit ef43116119
4 changed files with 4 additions and 12 deletions

View File

@@ -121,9 +121,7 @@ class _LoginPageState extends State<LoginPage>
tryInitApi(context);
_checkStatus(context);
if (isTop(context) && auth.user != null) {
SchedulerBinding.instance.addPostFrameCallback((_) {
context.canPop() ? context.pop() : context.go("/");
});
context.canPop() ? context.pop() : context.go("/");
}
return Scaffold(
appBar: AppBar(