AI 接入 V0.1
This commit is contained in:
@@ -55,3 +55,10 @@ List<String> asStringList(Object? value) {
|
||||
.where((e) => e.isNotEmpty)
|
||||
.toList();
|
||||
}
|
||||
|
||||
/// 后端给的是 `yyyy-MM-dd HH:mm:ss`,这里裁成 `yyyy-MM-dd HH:mm`。
|
||||
/// 列表里显示到秒没有意义,还会把卡片撑宽。
|
||||
String formatDateTime(Object? value) {
|
||||
final text = asString(value);
|
||||
return text.length >= 16 ? text.substring(0, 16) : text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user