修复托盘停用接口参数格式
Some checks failed
Release pipeline / publish (push) Has been cancelled
Release pipeline / Always run job (push) Has been cancelled

This commit is contained in:
sheng
2026-06-25 14:58:37 +08:00
parent 399af51749
commit 4c46fad0b8
3 changed files with 4 additions and 6 deletions

View File

@@ -75,10 +75,10 @@ export function trayUnbinding (tray) {
})
}
export function trayInactivity (data) {
export function trayInactivity (tray) {
return sendWorkerman({
action: 'set_tray_inactivity',
param: { data }
param: { tray }
})
}

View File

@@ -421,7 +421,7 @@ export default {
sendData: {
action: 'set_tray_inactivity',
param: {
data: [{ tray: row.tray }]
tray: row.tray
}
}
})

View File

@@ -615,9 +615,7 @@ export default {
return true
}
}).then(async ({ value }) => {
const param = action === 'set_tray_inactivity'
? { data: [{ tray: value }] }
: { tray: value }
const param = { tray: value }
await sendWorkerman({
sendData: {
action,