forked from drone/command-center-dashboard

罗广辉
2025-04-14 d96659a5ebd6a96dc94f1138202794ee8a474261
src/views/TaskManage/TaskIntermediateContent/CurrentTaskDetails/CurrentTaskDetails.vue
@@ -16,6 +16,7 @@
         <!-- 展示地图 -->
         <RealTimeMap />
      </div>
      <ControlPanel/>
   </el-dialog>
</template>
@@ -29,6 +30,7 @@
import { getWebsocketUrl } from '@/websocket/util/config'
import { useConnectWebSocket } from '@/utils/websocket/connect-websocket'
import { EBizCode } from '@/utils/staticData/enums'
import ControlPanel from '@/views/TaskManage/TaskIntermediateContent/CurrentTaskDetails/ControlPanel.vue'
const isShow = defineModel('show')
const props = defineProps({
@@ -50,7 +52,7 @@
// 机巢直播
const getDeviceLiveUrl = async () => {
   if (machineNestUrl.value) return machineNestUrl.value
   const res = await liveStart(taskDetails.value.device_sns[0])
   const res = await liveStart(taskDetails.value.device_sns[0],'')
   machineNestUrl.value = res.data.data.rtcs_url
   return machineNestUrl.value
}
@@ -58,7 +60,7 @@
// 无人机直播
const getDockLiveUrl = async dockSn => {
   if (dockLiveUrl.value) return dockLiveUrl.value
   const res = await liveStart(dockSn)
   const res = await liveStart(dockSn,'')
   dockLiveUrl.value = res.data.data.rtcs_url
   return dockLiveUrl.value
}