mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-06-14 11:42:02 +08:00
fix: 修复了确认对话框操作的变量在点击时被重置的bug
This commit is contained in:
@@ -2641,6 +2641,7 @@ pub async fn atx_power(
|
||||
State(state): State<Arc<AppState>>,
|
||||
Json(req): Json<AtxPowerControlRequest>,
|
||||
) -> Result<Json<LoginResponse>> {
|
||||
tracing::info!("Received ATX power request: action={}", req.action);
|
||||
let atx_guard = state.atx.read().await;
|
||||
let atx = atx_guard
|
||||
.as_ref()
|
||||
|
||||
Reference in New Issue
Block a user