refactor: 移除冗余注释和描述,优化管理员模块的代码结构

This commit is contained in:
2026-05-11 17:21:12 +08:00
parent 217ed7c02f
commit 76e318be8f
57 changed files with 163 additions and 382 deletions

View File

@@ -5,12 +5,7 @@ function pad2(n: number): string {
}
/**
* 将接口返回的 ISO 时间串格式化为 **浏览器本地时区** 下的
* `YYYY-MM-DD HH:mm:ss`与《01-界面文档》时间展示习惯一致,且列宽稳定)。
*
* 不使用 `Intl` 拼接 `GMT+8` 等时区后缀,避免在表格里挤出过长、重叠的字符串。
*
* `@param options.locale` 与调用方保持一致,便于日后按界面语言微调格式。
* 将接口返回的 ISO 时间串格式化为浏览器本地时区下的 `YYYY-MM-DD HH:mm:ss`。
*/
export function formatAdminInstant(
iso: string | null | undefined,