- 为再注册按钮添加条件渲染逻辑 - 使用 currentKey 状态判断当前页面类型 - 在任务清单(worklist)中隐藏再注册按钮 - 在历史清单(historylist)中保留发送功能 改动文件: - src/pages/patient/components/ActionPanel.tsx
@@ -317,6 +317,7 @@ const ActionPanel: React.FC = () => {
}
onClick={() => showNotImplemented('')}
/>
+ {currentKey === 'historylist' && (
<ActionButton
icon={
<Icon
@@ -335,7 +336,7 @@ const ActionPanel: React.FC = () => {
onClick={handleReRegister}
- />
+ />)}