style(frontend): 格式化前端代码并修复 eslint 异步操作未标记告警

- 统一 prettier 代码风格;
- 为 AdminTaskDetailPage 与 AdminTasksPage 中未捕获的 Promise 添加 void 标记;
- 验证方式:npm --prefix apps/frontend run check 全流程通过。
This commit is contained in:
yml2213
2026-10-11 15:20:54 +08:00
parent 6012add3c9
commit 9ce29964c7
12 changed files with 41 additions and 38 deletions
@@ -174,7 +174,7 @@ export function DouyinMashidaPanel() {
showSuccess(`推送订阅成功!平台将向 ${targetUrl} 推送订单事件`)
}
} catch (error) {
showError(error instanceof Error ? error.message : (disable ? '停用推送失败' : '推送订阅失败'))
showError(error instanceof Error ? error.message : disable ? '停用推送失败' : '推送订阅失败')
} finally {
setSubscribing(false)
}
@@ -286,11 +286,7 @@ export function DouyinMashidaPanel() {
<Col xs={24} md={14} style={{ textAlign: 'right' }}>
<Space wrap size={8}>
<Button
size="small"
icon={<GlobalOutlined />}
onClick={handleFillCurrentOrigin}
>
<Button size="small" icon={<GlobalOutlined />} onClick={handleFillCurrentOrigin}>
一键填入当前域名
</Button>
<Button
@@ -337,7 +333,11 @@ export function DouyinMashidaPanel() {
</Col>
<Col xs={24} lg={18}>
<Space wrap align="center">
<Text code copyable={{ text: messageUrl }} style={{ fontSize: 13, fontWeight: 500 }}>
<Text
code
copyable={{ text: messageUrl }}
style={{ fontSize: 13, fontWeight: 500 }}
>
{messageUrl}
</Text>
{isMessageUrlLocal ? (