fix(admin): 后台时间统一展示为 YYYY-MM-DD HH:mm:ss(formatDateTime 全页接入)

This commit is contained in:
2026-09-05 21:52:00 +08:00
parent cabbb4be0b
commit eebdb7af2d
15 changed files with 1553 additions and 7 deletions
@@ -1,4 +1,5 @@
<script setup lang="ts">
import { formatDateTime } from '@/utils/datetime'
import { computed, onMounted, ref } from 'vue'
import { ElMessage } from 'element-plus'
import { useAdminSessionStore } from '@/stores/admin-session'
@@ -101,7 +102,7 @@ onMounted(loadGroups)
</template>
</el-table-column>
<el-table-column prop="updatedAt" label="修改时间" min-width="170">
<template #default="{ row }">{{ row.updatedAt || row.createdAt || '—' }}</template>
<template #default="{ row }">{{ formatDateTime(row.updatedAt || row.createdAt) }}</template>
</el-table-column>
<el-table-column label="操作" width="140" fixed="right">
<template #default="{ row }">