From 115e2d9dc111f714906eb62bcf1d452b5abc0f2a Mon Sep 17 00:00:00 2001 From: zhangmeng <494089941@qq.com> Date: Mon, 7 Jun 2021 13:42:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86=E5=A4=B1=E8=B4=A5=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E8=BE=93=E5=85=A5=E6=89=8B=E6=9C=BA=E5=8F=B7=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ui/login/login_sms_page.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ui/login/login_sms_page.dart b/lib/ui/login/login_sms_page.dart index 4a701cd..3824515 100644 --- a/lib/ui/login/login_sms_page.dart +++ b/lib/ui/login/login_sms_page.dart @@ -2,6 +2,7 @@ import 'dart:async'; // Flutter imports: +import 'package:aku_community_manager/ui/login/login_page.dart'; import 'package:aku_community_manager/ui/widgets/common/aku_material_button.dart'; import 'package:flutter/material.dart'; @@ -125,12 +126,14 @@ class _LoginSMSPageState extends State { ); if (response.data['status'] == true) { await userProvider.setLogin(response.data['token']); + cancel(); Get.offAll(HomePage()); } else { _textEditingController.clear(); + cancel(); BotToast.showText(text: '登陆失败'); + Get.off(LoginPage()); } - cancel(); } // final userProvider =