style: 修复 frontend Prettier 格式检查失败
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user