From 5d2a0677a6d25e6934faec08aff8339af93e3387 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Wed, 15 Oct 2025 09:39:33 +0800
Subject: [PATCH] feat:提交代码

---
 src/components/WebViewPlus.vue |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/components/WebViewPlus.vue b/src/components/WebViewPlus.vue
index b3ca12f..775ff39 100644
--- a/src/components/WebViewPlus.vue
+++ b/src/components/WebViewPlus.vue
@@ -8,11 +8,16 @@
 const emit = defineEmits(['webMessage'])
 
 function viewMessage(event) {
-  messageFun({data: {data: {arg: event.detail.data[0]}}})
+  messageFun({
+    data: {data: {arg: event.detail.data[0]}},
+    type: 'WEB_INVOKE_APPSERVICE'
+  })
 }
-
+// WEB_INVOKE_APPSERVICE
 function messageFun(e) {
-  emit('webMessage', e.data.data.arg)
+  if(e.data.type === 'WEB_INVOKE_APPSERVICE'){
+    emit('webMessage', e.data.data.arg)
+  }
 }
 
 onShow(() => {

--
Gitblit v1.9.3