From 2fee66bc6651e1460ea1dbfb7affff2afa066add Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 15 Oct 2025 15:52:11 +0800
Subject: [PATCH] Merge branch 'master' of http://139.196.74.78:10010/r/drone/drone-app
---
src/subPackages/taskDetail/execution/index.vue | 37 +++++++++++++------------------------
1 files changed, 13 insertions(+), 24 deletions(-)
diff --git a/src/subPackages/taskDetail/execution/index.vue b/src/subPackages/taskDetail/execution/index.vue
index 034aa96..957529d 100644
--- a/src/subPackages/taskDetail/execution/index.vue
+++ b/src/subPackages/taskDetail/execution/index.vue
@@ -1,35 +1,24 @@
<!-- 已执行 -->
<template>
- <web-view ref="sWebViewRef" :src="`${viewUrl}`" @message="onPostMessage" @onPostMessage="onPostMessage" />
+ <WebViewPlus :src="`${viewUrl}`"/>
</template>
<script setup>
import {onLoad} from "@dcloudio/uni-app";
-import {useUserStore} from "@/store/index.js";
+import WebViewPlus from "@/components/WebViewPlus.vue";
+import {getWebViewUrl} from "@/utils/index.js";
-const sWebViewRef = ref(null);
-const userStore = useUserStore();
-let viewUrl = ''
+const viewUrl = ref(getWebViewUrl('/execution'))
-function onPostMessage(event) {
- if (event.detail.data[0].type === 'back') {
- // active.value = null
- }
-}
-
-// onLoad(() => {
-// window.addEventListener('message', function (e) {
-// if (e.data.data.type === 'back') {
-// // active.value = null
-// }
-// });
-// })
-
-onLoad((options) => {
- // console.log('options1111111', JSON.parse(decodeURIComponent(options)));
- const id=3333
- viewUrl = `http://192.168.1.178:5173/drone-app-web-view/#/webViewWrapper/execution?rowItem=${id}`;
-});
+// function onPostMessage(data) {
+// console.log(data, '9999')
+// if (data.type === 'taskDetails'){
+// console.log('4444')
+// uni.switchTab({
+// url: '/subPackages/taskDetail/execution/index'
+// });
+// }
+// }
</script>
<style lang="scss" scoped></style>
--
Gitblit v1.9.3