lsc 4 dní pred
rodič
commit
b30c6c1241

+ 2 - 2
src/views/components/element/FrameElement/BaseFrameElement.vue

@@ -20,7 +20,7 @@
           :height="elementInfo.height"
           :frameborder="0" 
           :allowfullscreen="true"
-          allow="camera *; microphone *;display-capture;midi;encrypted-media;fullscreen;"
+          allow="camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;"
         ></iframe>
         <iframe 
           :key="`src-${iframeKey}`"
@@ -30,7 +30,7 @@
           :height="elementInfo.height"
           :frameborder="0" 
           :allowfullscreen="true"
-          allow="camera *; microphone *;display-capture;midi;encrypted-media;fullscreen;"
+          allow="camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;"
         ></iframe>
 
         <!-- 在放映模式下不显示遮罩层,允许用户与iframe交互 -->

+ 2 - 2
src/views/components/element/FrameElement/index.vue

@@ -23,7 +23,7 @@
           :height="elementInfo.height"
           :frameborder="0" 
           :allowfullscreen="true"
-          allow="camera *; microphone *;display-capture;midi;encrypted-media;fullscreen;"
+          allow="camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;"
         ></iframe>
         <iframe v-else
           :src="elementInfo.url"
@@ -31,7 +31,7 @@
           :height="elementInfo.height"
           :frameborder="0" 
           :allowfullscreen="true"
-          allow="camera *; microphone *;display-capture;midi;encrypted-media;fullscreen;"
+          allow="camera *; microphone *; display-capture; midi; encrypted-media; fullscreen; geolocation; clipboard-read; clipboard-write; accelerometer; autoplay; gyroscope; payment; picture-in-picture; usb; xr-spatial-tracking;"
         ></iframe>
 
         <div class="drag-handler top"></div>