From f27ca082eb0a839449dd50c49007b58e5ed6946f Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 19 Jun 2025 19:08:01 +0800
Subject: [PATCH] feat: 服务名修改
---
src/api/pilot-bridge.ts | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/api/pilot-bridge.ts b/src/api/pilot-bridge.ts
index 61bdf4e..34dc63e 100644
--- a/src/api/pilot-bridge.ts
+++ b/src/api/pilot-bridge.ts
@@ -1,5 +1,5 @@
import { message } from 'ant-design-vue'
-import { EComponentName, EPhotoType, ERouterName } from '../types'
+import { EComponentName, ELocalStorageKey, EPhotoType, ERouterName } from '../types'
import { CURRENT_CONFIG } from './http/config'
import { EVideoPublishType, LiveStreamStatus } from '../types/live-stream'
import { getRoot } from '/@/root'
@@ -93,6 +93,7 @@
userName: '',
elementPreName: 'PILOT'
}
+ const token = localStorage.getItem(ELocalStorageKey.Token)
components.set(EComponentName.Map, mapParam)
const wsParam: WsParam = {
host: CURRENT_CONFIG.websocketURL,
@@ -235,7 +236,7 @@
return window.djiBridge.wsConnect(host, token, callback)
},
wsDisconnect (): string {
- return window.djiBridge.wsConnect()
+ return window.djiBridge.wsDisconnect()
},
wsSend (message: string): string {
return window.djiBridge.wsSend(message)
--
Gitblit v1.9.3