From 993bbbc0998b2b7c4e35c66c967d98b1952166b0 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Thu, 12 Oct 2023 11:11:43 +0800
Subject: [PATCH] 英文改中文

---
 src/components/g-map/use-drone-control-ws-event.ts |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/components/g-map/use-drone-control-ws-event.ts b/src/components/g-map/use-drone-control-ws-event.ts
index b6282ef..21d31f1 100644
--- a/src/components/g-map/use-drone-control-ws-event.ts
+++ b/src/components/g-map/use-drone-control-ws-event.ts
@@ -27,7 +27,7 @@
     if (error !== 0) {
       notification.error({
         key: key,
-        message: key + 'Error code:' + error,
+        message: key + '错误码:' + error,
         description: message,
         duration: null
       })
@@ -54,19 +54,19 @@
       case EBizCode.FlyToPointProgress: {
         const { sn: deviceSn, result, message: msg } = payload.data as FlyToPointMessage
         if (deviceSn !== sn) return
-        handleProgress(EBizCode.FlyToPointProgress, `device(sn: ${deviceSn}) ${msg}`, result)
+        handleProgress(EBizCode.FlyToPointProgress, `设备(编码: ${deviceSn}) ${msg}`, result)
         break
       }
       case EBizCode.TakeoffToPointProgress: {
         const { sn: deviceSn, result, message: msg } = payload.data as TakeoffToPointMessage
         if (deviceSn !== sn) return
-        handleProgress(EBizCode.TakeoffToPointProgress, `device(sn: ${deviceSn}) ${msg}`, result)
+        handleProgress(EBizCode.TakeoffToPointProgress, `设备(编码: ${deviceSn}) ${msg}`, result)
         break
       }
       case EBizCode.JoystickInvalidNotify: {
         const { sn: deviceSn, result, message: msg } = payload.data as DrcModeExitNotifyMessage
         if (deviceSn !== sn) return
-        handleProgress(EBizCode.JoystickInvalidNotify, `device(sn: ${deviceSn}) ${msg}`, result)
+        handleProgress(EBizCode.JoystickInvalidNotify, `设备(编码: ${deviceSn}) ${msg}`, result)
         break
       }
       case EBizCode.DrcStatusNotify: {

--
Gitblit v1.9.3