import http from '@/api' import type { DetectionLockHolder } from '@/stores/modules/detectionLock' /** * 查询当前检测锁持有状态 * - data 为 null → 锁空闲 * - data 非 null → 锁被某账号持有 * * 本接口只读,不抢锁、不会返回 DETECTION_BUSY */ export const getCurrentLock = () => { return http.get('/detection/lock/current', undefined, { loading: false }) }