align(生成记录): 列名对齐参考(记录类型→类型、生成时间→创建时间)、空态统一暂无记录(对齐 admin.html:5769-5770/admin.js:2866)

This commit is contained in:
2026-09-05 23:32:21 +08:00
parent c915847d92
commit d3bbb1a296
4 changed files with 28 additions and 7 deletions
@@ -1,9 +1,10 @@
/** 历史记录列表空/错误反馈(任务 125):空态文案与请求错误归一;纯逻辑。 */
import { requestErrorMessage } from '../../api/envelope.ts'
/** 空态文案(对齐 admin.js:2866 统一「暂无记录」)。 */
export function historyEmptyText(input: { hasFilter: boolean; total: number }): string {
if (typeof input.total === 'number' && input.total > 0) return ''
return input.hasFilter ? '暂无符合条件的生成记录,请调整筛选条件' : '暂无生成记录'
return '暂无记录'
}
/** 请求失败归一为可展示文案,空则回兜底。 */