File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change @@ -402,11 +402,20 @@ class _OtherSettings extends State<OtherSettings> {
402
402
ElevatedButton (
403
403
child: Text ('设置用户名/邮箱/密码' ),
404
404
onPressed: () async {
405
- Map <String , dynamic > data = {
406
- 'email' : _emailForUpdate.text,
407
- 'username' : _usernameForUpdate.text,
408
- 'password' : _passwordForUpdate.text,
409
- };
405
+ Map <String , dynamic > data = {};
406
+
407
+ if (_emailForUpdate.text != '' ) {
408
+ data['email' ] = _emailForUpdate.text;
409
+ }
410
+
411
+ if (_usernameForUpdate.text != '' ) {
412
+ data['username' ] = _usernameForUpdate.text;
413
+ }
414
+
415
+ if (_passwordForUpdate.text != '' ) {
416
+ data['password' ] = _passwordForUpdate.text;
417
+ }
418
+
410
419
try {
411
420
BaaS .CurrentUser currentUser =
412
421
await BaaS .Auth .getCurrentUser ();
Original file line number Diff line number Diff line change @@ -85,7 +85,8 @@ class _SchemaBatchState extends State<SchemaBatch> {
85
85
{"rum" : 203 , "str" : '5a33406909a805412e3169c3' },
86
86
];
87
87
88
- TableRecordOperationList records = await order.createMany (data);
88
+ TableRecordOperationList records =
89
+ await order.createMany (data, enableTrigger: false );
89
90
Map result = getResult (records);
90
91
alert (context, '$result ' );
91
92
} catch (e) {
You can’t perform that action at this time.
0 commit comments