修复按钮禁用逻辑:临时禁用状态检查功能
- 临时禁用"检查状态"按钮(功能开发中) - 移除"启用"按钮对在线状态的依赖 - 修复因状态检查未完成导致所有供应商无法启用的问题
This commit is contained in:
@@ -88,14 +88,14 @@ const ProviderList: React.FC<ProviderListProps> = ({
|
||||
<button
|
||||
className="check-btn"
|
||||
onClick={() => onCheckStatus(provider.id)}
|
||||
disabled={isChecking}
|
||||
disabled={true}
|
||||
>
|
||||
{isChecking ? '检查中' : '检查状态'}
|
||||
</button>
|
||||
<button
|
||||
className="enable-btn"
|
||||
onClick={() => onSwitch(provider.id)}
|
||||
disabled={!status?.isOnline || isCurrent}
|
||||
disabled={isCurrent}
|
||||
>
|
||||
启用
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user