This commit is contained in:
薇薇安 2026-02-01 22:19:59 +08:00
parent 4da3e0bd48
commit ce3a4953f5
2 changed files with 22 additions and 3 deletions

View File

@ -278,6 +278,16 @@
border-color: #bd2130;
}
.system-btn.warning {
background: #ff9800;
color: white;
border-color: #f57c00;
}
.system-btn.warning:hover:not(:disabled) {
background: #f57c00;
}
.system-hint {
font-size: 13px;
color: #666;

View File

@ -1185,15 +1185,24 @@ const GlobalConfig = () => {
>
停止后端服务
</button>
</div>
</div>
<div className="system-control-group" style={{ marginTop: '15px' }}>
<h4 className="control-group-title" style={{ margin: '10px 0 8px', fontSize: '14px', color: '#666' }}>系统数据维护</h4>
<div className="system-actions">
<button
type="button"
className="system-btn"
className="system-btn warning"
onClick={handleClearCache}
disabled={systemBusy}
title="清理Redis配置缓存并从数据库回灌。切换API Key后建议先点这里再重启交易系统。"
title="清理Redis配置缓存并从数据库回灌。这将影响后端服务和所有交易进程。切换API Key或修改配置后建议执行。"
>
清除缓存
清除全局缓存
</button>
<span style={{ fontSize: '12px', color: '#888', alignSelf: 'center', marginLeft: '10px' }}>
* 影响后端服务及所有交易账号修改配置后请点击
</span>
</div>
</div>