| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import {getWebViewUrl} from "@/utils/index.js"; |
| | | import { onLoad } from '@dcloudio/uni-app'; |
| | | import { useUserStore } from '@/store/index.js' |
| | | const userStore = useUserStore() |
| | | const userInfo = userStore.userInfo |
| | | const sWebViewRef = ref(null); |
| | | const viewUrl = ref(`http://192.168.1.157:5173/drone-app-web-view/#/webViewWrapper/workDetail?params=${JSON.stringify(userStore?.userInfo)}`); |
| | | const viewUrl = ref('') |
| | | onLoad( (options) => { |
| | | const eventNum= options.eventNum; |
| | | |
| | | viewUrl.value =`http://192.168.1.157:5173/drone-app-web-view/#/webViewWrapper/workDetail?params=${JSON.stringify(userStore?.userInfo)}&eventNum=${eventNum}` |
| | | const eventNum= options.eventNum; |
| | | viewUrl.value = getWebViewUrl('/workDetail', {eventNum:eventNum}) |
| | | }); |
| | | |
| | | function onPostMessage(data) { |