From 4cb614975ad7e3d96421ed40aa9709e24f8a703d Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Fri, 24 Oct 2025 11:44:46 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/components/WebViewPlus.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/components/WebViewPlus.vue b/src/components/WebViewPlus.vue
index 47d5d01..6e7da46 100644
--- a/src/components/WebViewPlus.vue
+++ b/src/components/WebViewPlus.vue
@@ -1,11 +1,12 @@
 <template>
-  <web-view :src="src" @message="viewMessage" />
+  <web-view :src="src" @message="viewMessage" :allow="allow"/>
 </template>
 
 <script setup>
+
+const allow = "accelerometer;ambient-light-sensor;autoplay;battery;camera;clipboard-read;clipboard-write;cross-origin-isolated;display-capture;document-domain;encrypted-media;execution-while-not-rendered;execution-while-out-of-viewport;fullscreen;gamepad;geolocation;gyroscope;hid;idle-detection;local-fonts;magnetometer;microphone;midi;payment;picture-in-picture;publickey-credentials-get;screen-wake-lock;serial;speaker-selection;storage-access;sync-xhr;usb;web-share;xr-spatial-tracking"
 const src = defineModel("src");
 const emit = defineEmits(["webMessage"]);
-
 function viewMessage(event) {
   messageFun({
     data: {
@@ -16,6 +17,7 @@
     },
   });
 }
+
 // WEB_INVOKE_APPSERVICE
 function messageFun(e) {
   if (e.data.type === "WEB_INVOKE_APPSERVICE") {

--
Gitblit v1.9.3