This commit is contained in:
wyf
2025-05-23 18:17:04 +08:00
parent c650bad8b1
commit acfb262812
17 changed files with 673 additions and 485 deletions

View File

@@ -326,13 +326,16 @@ class _RepairModelWidgetState extends State<RepairModelWidget> {
.refresh(); // 通知 Obx 更新(如果用了 GetX
print(widget.model);
} else {
TopSlideNotification.show(
context,
text: apiResponse.msg!,
textColor: apiResponse.code == HttpStatusCodes.ok
? themeController.currentColor.sc2
: themeController.currentColor.sc9,
);
if (widget.model['path'] == null ||
widget.model['path'].isEmpty) {
TopSlideNotification.show(
context,
text: apiResponse.msg!,
textColor: apiResponse.code == HttpStatusCodes.ok
? themeController.currentColor.sc2
: themeController.currentColor.sc9,
);
}
}
},
child: SizedBox(