新增未登录状态下的假资料展示,优化用户卡片界面,允许用户点击登录以打开登录弹窗。同时,更新登录弹窗样式,增加取消按钮,提升用户体验和交互性。
This commit is contained in:
@@ -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()
|
||||
|
||||
1
soul-admin/tmp/build-errors.log
Normal file
1
soul-admin/tmp/build-errors.log
Normal file
@@ -0,0 +1 @@
|
||||
exit status 1exit status 1
|
||||
Reference in New Issue
Block a user