| | |
| | | <view> |
| | | <web-view |
| | | ref="sWebViewRef" |
| | | :src='`${viewUrl}?token=${token}&wayLineJodInfoId=${active.id}`' |
| | | :src='`${viewUrl}?token=${token}&wayLineJobInfoId=${active.id}`' |
| | | @message="onPostMessage" |
| | | @onPostMessage="onPostMessage" |
| | | /> |
| | |
| | | |
| | | <script setup> |
| | | |
| | | import {onHide, onShow} from "@dcloudio/uni-app"; |
| | | import {useUserStore} from "@/store/index.js"; |
| | | const active = defineModel('active') |
| | | const sWebViewRef = ref(null) |
| | |
| | | |
| | | import {onLoad} from "@dcloudio/uni-app"; |
| | | |
| | | // const active = defineModel('active') |
| | | // console.log(active.value, '555') |
| | | function onPostMessage(event) { |
| | | if (event.detail.data[0].type === 'back'){ |
| | | active.value = null |