站点信息,保存 数据
This commit is contained in:
@@ -273,14 +273,13 @@ class _LoginPageState extends State<LoginPage> with SingleTickerProviderStateMix
|
||||
|
||||
dismissLoading();
|
||||
showToast('登录成功,欢迎您');
|
||||
HttpService.to.setAuthorization(token);
|
||||
|
||||
// 跳转到主页,并清除所有历史页面
|
||||
Get.offAll(() => B_BaseWidgetsPage());
|
||||
} catch (e) {
|
||||
// 如果解析 JSON 失败
|
||||
dismissLoading();
|
||||
showToast('登录失败:返回数据解析失败${e.toString()}');
|
||||
showToast('登录失败:数据异常');
|
||||
}
|
||||
} catch (e) {
|
||||
dismissLoading();
|
||||
|
||||
Reference in New Issue
Block a user