fix note dialog
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
		
							parent
							
								
									36753e00ca
								
							
						
					
					
						commit
						08762ca727
					
				| @ -1100,7 +1100,7 @@ showSetOSAccount( | |||||||
| 
 | 
 | ||||||
| showAuditDialog(SessionID sessionId, dialogManager) async { | showAuditDialog(SessionID sessionId, dialogManager) async { | ||||||
|   final controller = TextEditingController(); |   final controller = TextEditingController(); | ||||||
|   dialogManager.show((setState, close) { |   dialogManager.show((setState, close, context) { | ||||||
|     submit() { |     submit() { | ||||||
|       var text = controller.text.trim(); |       var text = controller.text.trim(); | ||||||
|       if (text != '') { |       if (text != '') { | ||||||
|  | |||||||
| @ -1403,7 +1403,7 @@ class _AccountState extends State<_Account> { | |||||||
|           child: Column( |           child: Column( | ||||||
|             children: [ |             children: [ | ||||||
|               text('Username', gFFI.userModel.userName.value), |               text('Username', gFFI.userModel.userName.value), | ||||||
|               text('Group', gFFI.groupModel.groupName.value), |               // text('Group', gFFI.groupModel.groupName.value), | ||||||
|             ], |             ], | ||||||
|           ), |           ), | ||||||
|         )).marginOnly(left: 18, top: 16); |         )).marginOnly(left: 18, top: 16); | ||||||
|  | |||||||
| @ -165,6 +165,7 @@ class UserModel { | |||||||
|   static Future<List<dynamic>> queryLoginOptions() async { |   static Future<List<dynamic>> queryLoginOptions() async { | ||||||
|     try { |     try { | ||||||
|       final url = await bind.mainGetApiServer(); |       final url = await bind.mainGetApiServer(); | ||||||
|  |       if (url.trim().isEmpty) return []; | ||||||
|       final resp = await http.get(Uri.parse('$url/api/login-options')); |       final resp = await http.get(Uri.parse('$url/api/login-options')); | ||||||
|       return jsonDecode(resp.body); |       return jsonDecode(resp.body); | ||||||
|     } catch (e) { |     } catch (e) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user