style(frontend): 格式化前端代码以通过pre-push检查

This commit is contained in:
yml2213
2026-09-12 17:47:37 +08:00
parent fea82bff36
commit 111f400bdb
7 changed files with 58 additions and 29 deletions
@@ -208,7 +208,8 @@ export function PddPlatformPanel() {
})
const data = response?.data as AdminPddSyncResult | undefined
if (data) {
const pagesText = data.pagesFetched && data.pagesFetched > 1 ? `(自适应拉取 ${data.pagesFetched} 页)` : ""
const pagesText =
data.pagesFetched && data.pagesFetched > 1 ? `(自适应拉取 ${data.pagesFetched} 页)` : ''
showSuccess(
`店铺【${store.shopName}】同步完成${pagesText}:抓取 ${data.fetchedCount} 笔,入库/更新 ${data.upsertedCount} 笔`,
)
@@ -887,8 +888,10 @@ export function PddPlatformPanel() {
message={
<span>
当前拉单规则:默认抓取<strong>【{orderTypeDesc}】</strong>订单,单页拉取最新
<strong>【{config.pageSize || 50}】</strong>单;已启用<strong>【自适应翻页拉取】</strong>(上限
<strong>【{config.maxPages || 5}】</strong>页),当第 1 页全为新订单时自动向后翻页直至命中数据库已有订单,避免高峰期漏单。
<strong>【{config.pageSize || 50}】</strong>单;已启用
<strong>【自适应翻页拉取】</strong>(上限
<strong>【{config.maxPages || 5}】</strong>页),当第 1
页全为新订单时自动向后翻页直至命中数据库已有订单,避免高峰期漏单。
</span>
}
description="系统自动保存每家店铺上次 Cookie 的测活状态与时间戳。若在定时轮询或手动测试中检测到 Cookie 失效(或触发登录过期),系统将自动更新状态并向 Bark / Wpush 发送内部告警通知。"