站点信息,保存 数据

This commit is contained in:
2025-11-05 17:21:03 +08:00
parent 36910b8b32
commit 71aa1101be
6 changed files with 169 additions and 43 deletions

View File

@@ -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();