This commit is contained in:
薇薇安 2026-01-21 22:13:52 +08:00
parent 5a00dc75d7
commit 2d17406799

View File

@ -398,16 +398,16 @@ const ConfigPanel = ({ currentUser }) => {
checkFeasibility() checkFeasibility()
if (isAdmin) { if (isAdmin) {
loadSystemStatus() loadSystemStatus()
}
loadBackendStatus() loadBackendStatus()
}
loadAccountTradingStatus() loadAccountTradingStatus()
loadCurrentAccountMeta() loadCurrentAccountMeta()
const timer = setInterval(() => { const timer = setInterval(() => {
if (isAdmin) { if (isAdmin) {
loadSystemStatus() loadSystemStatus()
}
loadBackendStatus() loadBackendStatus()
}
loadAccountTradingStatus() loadAccountTradingStatus()
loadCurrentAccountMeta() loadCurrentAccountMeta()
}, 3000) }, 3000)
@ -441,8 +441,8 @@ const ConfigPanel = ({ currentUser }) => {
checkFeasibility() checkFeasibility()
if (isAdmin) { if (isAdmin) {
loadSystemStatus() loadSystemStatus()
}
loadBackendStatus() loadBackendStatus()
}
loadAccountTradingStatus() loadAccountTradingStatus()
loadCurrentAccountMeta() loadCurrentAccountMeta()
}, [accountId]) }, [accountId])
@ -879,10 +879,12 @@ const ConfigPanel = ({ currentUser }) => {
<pre style={{ whiteSpace: 'pre-wrap', marginTop: '8px' }}>{String(accountTradingStatus.stderr_tail_error || '')}</pre> <pre style={{ whiteSpace: 'pre-wrap', marginTop: '8px' }}>{String(accountTradingStatus.stderr_tail_error || '')}</pre>
</details> </details>
) : null} ) : null}
{accountTradingStatus?.supervisord_tail ? ( {['FATAL', 'EXITED', 'BACKOFF'].includes(String(accountTradingStatus?.state || '')) ? (
<details style={{ marginTop: '8px' }}> <details style={{ marginTop: '8px' }}>
<summary style={{ cursor: 'pointer' }}>supervisord 主日志尾部spawn error 常见原因在这里</summary> <summary style={{ cursor: 'pointer' }}>supervisord 主日志尾部spawn error 常见原因在这里</summary>
<pre style={{ whiteSpace: 'pre-wrap', marginTop: '8px' }}>{String(accountTradingStatus.supervisord_tail || '')}</pre> <pre style={{ whiteSpace: 'pre-wrap', marginTop: '8px' }}>
{String(accountTradingStatus?.supervisord_tail || '(暂无:可能未配置 supervisord logfile 或当前用户无权限读取。可在后端配置 SUPERVISOR_LOGFILE 指向 supervisord 主日志路径)')}
</pre>
</details> </details>
) : null} ) : null}
</div> </div>