fix: 移除快速审批页面中重复的 return 语句

修复白屏问题:
- 移除组件末尾的重复 return 语句
- 这些代码是死代码,导致组件无法正常渲染

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
root
2026-02-26 19:34:38 +08:00
parent 390bdc348c
commit ea185eb6cc
@@ -152,36 +152,3 @@ export default function QuickAction() {
</div> </div>
) )
} }
return (
<div style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
height: '100vh',
background: '#f5f5f5'
}}>
{loading && (
<>
<SpinLoading color='primary' />
<p style={{ marginTop: '16px', color: '#999' }}>处理中...</p>
</>
)}
{status === 'success' && (
<>
<div style={{ fontSize: '48px' }}>✅</div>
<p style={{ marginTop: '16px', color: '#52c41a' }}>操作成功</p>
</>
)}
{status === 'error' && (
<>
<div style={{ fontSize: '48px' }}>❌</div>
<p style={{ marginTop: '16px', color: '#ff4d4f' }}>操作失败</p>
</>
)}
</div>
)
}