style: 修复 frontend Prettier 格式检查失败
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -22,8 +22,8 @@ import PageHeader from '@/components/admin/PageHeader'
|
||||
import {
|
||||
buildOpen91QueryDevMock,
|
||||
createAffiliateDashDevMock,
|
||||
createKuaishouIndustryVoucherDevMock,
|
||||
fetchDevMockStatus,
|
||||
createKuaishouIndustryVoucherDevMock,
|
||||
fetchDevMockStatus,
|
||||
type DevMockCreateResult,
|
||||
type DevMockKuaishouIndustryVoucherResult,
|
||||
type DevMockOpen91QueryResult,
|
||||
@@ -45,8 +45,6 @@ export default function AdminDevMockPage() {
|
||||
const status = statusQuery.data?.data
|
||||
const enabled = Boolean(status?.enabled)
|
||||
|
||||
|
||||
|
||||
const affiliateDashMutation = useMutation({
|
||||
mutationFn: createAffiliateDashDevMock,
|
||||
onSuccess: (response) => {
|
||||
@@ -126,7 +124,6 @@ export default function AdminDevMockPage() {
|
||||
/>
|
||||
|
||||
<Row gutter={[16, 16]}>
|
||||
|
||||
<Col xs={24} xl={12}>
|
||||
<Card title="1. affiliate-dash 领取(mock 二维码/提交发货)" bordered={false}>
|
||||
<AffiliateDashMockForm
|
||||
|
||||
@@ -627,4 +627,4 @@ function cleanParams(params: Record<string, unknown>) {
|
||||
}
|
||||
})
|
||||
return next
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,11 +69,7 @@ import { hasAdminRole } from '@/utils/admin-auth'
|
||||
import { buildAdminLocalTablePagination } from '@/utils/admin-pagination'
|
||||
import { formatAdminDateTime } from '@/utils/admin-time'
|
||||
|
||||
type PlatformTab =
|
||||
| 'notifications'
|
||||
| 'kuaishouIndustry'
|
||||
| 'affiliateDash'
|
||||
| 'pdd'
|
||||
type PlatformTab = 'notifications' | 'kuaishouIndustry' | 'affiliateDash' | 'pdd'
|
||||
|
||||
type NotificationConfigResponse = {
|
||||
filePath: string
|
||||
@@ -86,12 +82,7 @@ type ScheduledJobsState = {
|
||||
runtime: AdminScheduledJobRuntimeState[]
|
||||
}
|
||||
|
||||
const platformTabs: PlatformTab[] = [
|
||||
'notifications',
|
||||
'kuaishouIndustry',
|
||||
'affiliateDash',
|
||||
'pdd',
|
||||
]
|
||||
const platformTabs: PlatformTab[] = ['notifications', 'kuaishouIndustry', 'affiliateDash', 'pdd']
|
||||
|
||||
export default function AdminPlatformShopsPage() {
|
||||
const [searchParams, setSearchParams] = useSearchParams()
|
||||
@@ -122,17 +113,13 @@ export default function AdminPlatformShopsPage() {
|
||||
setErrorMessage('')
|
||||
|
||||
try {
|
||||
const [
|
||||
notificationResponse,
|
||||
scheduledJobsResponse,
|
||||
industryResponse,
|
||||
affiliateDashResponse,
|
||||
] = await Promise.all([
|
||||
fetchAdminNotificationConfig(),
|
||||
fetchAdminScheduledJobsConfig(),
|
||||
fetchAdminKuaishouIndustrySourceConfig(),
|
||||
fetchAdminAffiliateDashConfig(),
|
||||
])
|
||||
const [notificationResponse, scheduledJobsResponse, industryResponse, affiliateDashResponse] =
|
||||
await Promise.all([
|
||||
fetchAdminNotificationConfig(),
|
||||
fetchAdminScheduledJobsConfig(),
|
||||
fetchAdminKuaishouIndustrySourceConfig(),
|
||||
fetchAdminAffiliateDashConfig(),
|
||||
])
|
||||
|
||||
setNotificationConfig(notificationResponse.data)
|
||||
setScheduledJobs(scheduledJobsResponse.data)
|
||||
@@ -1839,15 +1826,10 @@ function AffiliateDashPlatformPanel() {
|
||||
</Space>
|
||||
</Card>
|
||||
|
||||
<Card
|
||||
size="small"
|
||||
title={`权威中英映射表(内置 ${builtinSkuRows.length} 条)`}
|
||||
>
|
||||
<Card size="small" title={`权威中英映射表(内置 ${builtinSkuRows.length} 条)`}>
|
||||
<Typography.Paragraph type="secondary" style={{ marginBottom: 12 }}>
|
||||
91 店商品编码使用中文名;正式商品请改后端常量表
|
||||
<Typography.Text code>
|
||||
apps/backend/.../affiliate-dash/sku-mapping.ts
|
||||
</Typography.Text>
|
||||
<Typography.Text code>apps/backend/.../affiliate-dash/sku-mapping.ts</Typography.Text>
|
||||
,与平台商品目录对齐。
|
||||
</Typography.Paragraph>
|
||||
<Table<SkuMappingRow>
|
||||
|
||||
@@ -5,11 +5,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||
import { useParams } from 'react-router'
|
||||
|
||||
import { showError, showSuccess } from '@/lib/feedback'
|
||||
import {
|
||||
fetchClaimDetail,
|
||||
submitAffiliateDashClaim,
|
||||
submitClaimUid,
|
||||
} from '@/services/claim'
|
||||
import { fetchClaimDetail, submitAffiliateDashClaim, submitClaimUid } from '@/services/claim'
|
||||
import type { ClaimDetailData } from '@/types/claim'
|
||||
|
||||
import { AffiliateDashClaimPanel, AffiliateDashResultStep } from './ClaimAffiliateDashSteps'
|
||||
|
||||
@@ -87,11 +87,7 @@ export function createClaimSnapshot(detail: ClaimDetailData | null) {
|
||||
isRedeemFailed,
|
||||
isCompleted,
|
||||
})
|
||||
const resultVariant: ResultVariant = isRedeemFailed
|
||||
? 'warning'
|
||||
: isCompleted
|
||||
? 'success'
|
||||
: 'info'
|
||||
const resultVariant: ResultVariant = isRedeemFailed ? 'warning' : isCompleted ? 'success' : 'info'
|
||||
|
||||
return {
|
||||
flow: null as null,
|
||||
|
||||
Reference in New Issue
Block a user