fix note dialog

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-06-29 06:25:17 +08:00
parent 36753e00ca
commit 08762ca727
3 changed files with 3 additions and 2 deletions

View File

@ -1100,7 +1100,7 @@ showSetOSAccount(
showAuditDialog(SessionID sessionId, dialogManager) async {
final controller = TextEditingController();
dialogManager.show((setState, close) {
dialogManager.show((setState, close, context) {
submit() {
var text = controller.text.trim();
if (text != '') {

View File

@ -1403,7 +1403,7 @@ class _AccountState extends State<_Account> {
child: Column(
children: [
text('Username', gFFI.userModel.userName.value),
text('Group', gFFI.groupModel.groupName.value),
// text('Group', gFFI.groupModel.groupName.value),
],
),
)).marginOnly(left: 18, top: 16);

View File

@ -165,6 +165,7 @@ class UserModel {
static Future<List<dynamic>> queryLoginOptions() async {
try {
final url = await bind.mainGetApiServer();
if (url.trim().isEmpty) return [];
final resp = await http.get(Uri.parse('$url/api/login-options'));
return jsonDecode(resp.body);
} catch (e) {