From 7ecb8f3f69d04381ac6d2014f32f4305f3536835 Mon Sep 17 00:00:00 2001
From: GuLiMmo <2820890765@qq.com>
Date: Fri, 26 Apr 2024 09:11:38 +0800
Subject: [PATCH] fix

---
 src/components/g-map/use-dock-control.ts |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/components/g-map/use-dock-control.ts b/src/components/g-map/use-dock-control.ts
index 186bf7b..8bcf20f 100644
--- a/src/components/g-map/use-dock-control.ts
+++ b/src/components/g-map/use-dock-control.ts
@@ -28,8 +28,14 @@
     try {
       let body = undefined as any
       if (params.action !== undefined) {
-        body = {
-          action: params.action
+        if (params.cmd === DeviceCmd.SdrWorkModeSwitch) {
+          body = {
+            link_workmode: params.action
+          }
+        } else {
+          body = {
+            action: params.action
+          }
         }
       }
       const { code, message: msg } = await postSendCmd({ dock_sn: params.sn, device_cmd: params.cmd }, body)

--
Gitblit v1.9.3