chenyao
2025-11-08 5aeb8c60920f72382b57c81b3789b127a941f46a
src/subPackages/droneConsole/index.vue
@@ -10,12 +10,10 @@
import dayjs from "dayjs";
import {useUserStore} from "@/store/index.js";
const wayLineJodInfoId = ref(null)
const queryParams = ref({})
const viewUrl = computed(() => {
  return getWebViewUrl('/DroneConsole', {
    wayLineJodInfoId: wayLineJodInfoId.value,
  })
  return getWebViewUrl('/DroneConsole', queryParams.value)
})
function onPostMessage(data) {
@@ -81,21 +79,23 @@
}
onLoad((options) => {
  wayLineJodInfoId.value = options.wayLineJodInfoId
  queryParams.value = options
})
// onShow(() => {
//   // #ifdef APP-PLUS
//   plus.screen.lockOrientation("landscape-primary");
//   // #endif
// });
//
// onHide(() => {
//   // #ifdef APP-PLUS
//   plus.screen.lockOrientation("portrait-primary");
//   // #endif
// });
onShow(() => {
  // #ifdef APP-PLUS
  plus.navigator.setFullscreen(true); // 加入全屏
  plus.screen.lockOrientation("landscape-primary");//横屏
  // #endif
});
onHide(() => {
  // #ifdef APP-PLUS
  plus.navigator.setFullscreen(false);
  plus.screen.lockOrientation("portrait-primary");
  // #endif
});
</script>
<style scoped lang="scss">