新增未登录状态下的假资料展示,优化用户卡片界面,允许用户点击登录以打开登录弹窗。同时,更新登录弹窗样式,增加取消按钮,提升用户体验和交互性。

This commit is contained in:
乘风
2026-02-10 10:39:39 +08:00
parent e6fa0b8e0d
commit e295f55fd9
9 changed files with 162 additions and 78 deletions

View File

@@ -234,12 +234,13 @@ export function DistributionPage() {
async function handleApproveWithdrawal(id: string) {
if (!confirm('确认审核通过并打款?')) return
try {
const res = await put<{ success?: boolean; error?: string }>('/api/admin/withdrawals', {
id,
action: 'approve',
})
const res = await put<{ success?: boolean; error?: string; message?: string }>(
'/api/admin/withdrawals',
{ id, action: 'approve' },
)
if (!res?.success) {
alert(res?.error || '操作失败')
const detail = res?.message || res?.error || '操作失败'
alert(detail)
return
}
await refreshCurrentTab()

View File

@@ -0,0 +1 @@
exit status 1exit status 1