张含笑
2025-10-15 988fa08c62a299026c4b3b27fc8a2a7e8f80fec8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!-- 巡检任务 -->
<template>
  <WebViewPlus :src="`${viewUrl}`" @webMessage="onPostMessage"/>
</template>
 
<script setup>
import { getWebViewUrl } from "@/utils/index.js";
import WebViewPlus from "@/components/WebViewPlus.vue";
 
const viewUrl = getWebViewUrl('/inspectionTask')
 
function onPostMessage(data) {
  if (data.type === 'taskDetails'){
    uni.navigateTo({
      url: '/subPackages/taskDetail/execution/index'
    });
  }
}
 
</script>
<style scoped lang="scss">
 
</style>