mod: account (#989)

This commit is contained in:
My-Responsitories
2025-08-11 11:01:00 +08:00
committed by GitHub
parent dc61d9007f
commit e7f27e4913
2 changed files with 11 additions and 4 deletions

View File

@@ -698,9 +698,10 @@ class LoginPageController extends GetxController
}
}
static Future<void> switchAccountDialog(BuildContext context) {
static Future<void>? switchAccountDialog(BuildContext context) {
if (Accounts.account.isEmpty) {
return SmartDialog.showToast('请先登录');
SmartDialog.showToast('请先登录');
return Get.toNamed('/loginPage');
}
final selectAccount = Map.of(Accounts.accountMode);
final options = {