style(frontend): 格式化前端代码并修复 eslint 异步操作未标记告警
- 统一 prettier 代码风格; - 为 AdminTaskDetailPage 与 AdminTasksPage 中未捕获的 Promise 添加 void 标记; - 验证方式:npm --prefix apps/frontend run check 全流程通过。
This commit is contained in:
@@ -31,10 +31,7 @@ import StatusTag from '@/components/admin/StatusTag'
|
||||
import dayjs from '@/lib/dayjs'
|
||||
import { fetchAdminOrders } from '@/services/admin'
|
||||
import type { AdminOrderListItem } from '@/types/admin'
|
||||
import {
|
||||
resolveOrderFulfillmentMode,
|
||||
resolveOrderPlatformBadge,
|
||||
} from '@/utils/admin-display'
|
||||
import { resolveOrderFulfillmentMode, resolveOrderPlatformBadge } from '@/utils/admin-display'
|
||||
import {
|
||||
adminOrderExecutorOptions,
|
||||
adminOrderPlatformSegmentedOptions,
|
||||
@@ -356,7 +353,8 @@ export default function AdminOrdersPage() {
|
||||
render: (_, row) => (
|
||||
<div className="cell-stack" style={{ gap: 3 }}>
|
||||
<strong style={{ fontSize: 14, color: '#0f172a' }}>
|
||||
¥ {row.totalAmount || '0.00'} <span style={{ fontSize: 11, color: '#64748b' }}>{row.currency}</span>
|
||||
¥ {row.totalAmount || '0.00'}{' '}
|
||||
<span style={{ fontSize: 11, color: '#64748b' }}>{row.currency}</span>
|
||||
</strong>
|
||||
<span className="muted" style={{ fontSize: 12 }}>
|
||||
{formatAdminDateTime(row.paidAt || row.createdAt)}
|
||||
@@ -451,7 +449,15 @@ export default function AdminOrdersPage() {
|
||||
|
||||
<Card style={{ marginBottom: 16 }}>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', flexWrap: 'wrap', gap: 12 }}>
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
flexWrap: 'wrap',
|
||||
gap: 12,
|
||||
}}
|
||||
>
|
||||
<Segmented
|
||||
size="middle"
|
||||
options={adminOrderPlatformSegmentedOptions}
|
||||
|
||||
Reference in New Issue
Block a user