罗广辉
2026-06-18 44dd9c4eb8a2489c63a5eb53fd4254bbb3510e95
src/subPackages/droneConsole/index.vue
@@ -6,21 +6,10 @@
import {onHide, onLoad, onShow} from "@dcloudio/uni-app";
import WebViewPlus from "@/components/WebViewPlus.vue";
import {getEnvObj, getWebViewUrl} from "@/utils/index.js";
import Recorder from "js-audio-recorder";
import dayjs from "dayjs";
import {useUserStore} from "@/store/index.js";
const queryParams = ref({})
const viewUrl = computed(() => {
  return getWebViewUrl('/DroneConsole', queryParams.value)
})
function onPostMessage(data) {
  if (data.type === 'back'){
    // uni.navigateTo({
    //   url: `/subPackages/inProgress/index?wayLineJobInfoId=${data.taskDetails.id}`
    // });
    // #ifdef H5
    window.history.back()
    // #endif
@@ -87,8 +76,12 @@
  })
}
const viewUrl = ref("");
onLoad((options) => {
  queryParams.value = options
  viewUrl.value = getWebViewUrl("/DroneConsole", {
    wayLineJobInfoId: options.wayLineJobInfoId,
    dockSn: options.dockSn,
  });
})