fix: VLM识别修复 + 饮食CRUD + 侧边栏美化 + UI优化
- VLM: ChatMessage.Content string→object, 修复视觉content双重序列化 - 饮食: diet/medication端点 record→手动JSON解析, 修复循环引用 - 饮食记录: 左滑删除 + 去评分 + AI饮食评语(DeepSeek) - 侧边栏: 功能区统一Row+Expanded, 服务包compact模式 - 历史对话: 点击加载历史消息 - 登录页: 居中布局, 去底部空白 - UI: 主色加深#6C5CE7, maxWidth:1024防图片超大
This commit is contained in:
@@ -108,6 +108,10 @@ class DietService {
|
||||
Future<void> create(Map<String, dynamic> data) async {
|
||||
await _api.post('/api/diet-records', data: data);
|
||||
}
|
||||
|
||||
Future<void> deleteRecord(String id) async {
|
||||
await _api.delete('/api/diet-records/$id');
|
||||
}
|
||||
}
|
||||
|
||||
/// 问诊服务
|
||||
|
||||
Reference in New Issue
Block a user