From 4de4baa6eea8f80160f6cdc8a4ebd17c0c48f0ee Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Fri, 17 Oct 2025 16:43:12 +0800
Subject: [PATCH] feat:提交代碼
---
src/subPackages/taskDetail/execution/index.vue | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/subPackages/taskDetail/execution/index.vue b/src/subPackages/taskDetail/execution/index.vue
index 957529d..09234ef 100644
--- a/src/subPackages/taskDetail/execution/index.vue
+++ b/src/subPackages/taskDetail/execution/index.vue
@@ -1,10 +1,10 @@
<!-- 已执行 -->
<template>
- <WebViewPlus :src="`${viewUrl}`"/>
+ <WebViewPlus v-if="isApp" :src="`${viewUrl}`"/>
</template>
<script setup>
-import {onLoad} from "@dcloudio/uni-app";
+import {onHide, onLoad, onShow} from "@dcloudio/uni-app";
import WebViewPlus from "@/components/WebViewPlus.vue";
import {getWebViewUrl} from "@/utils/index.js";
@@ -19,6 +19,14 @@
// });
// }
// }
+const isApp = ref(false)
+onShow(() => {
+ isApp.value = true
+});
+
+onHide(() => {
+ isApp.value = false
+});
</script>
<style lang="scss" scoped></style>
--
Gitblit v1.9.3