From c67227e554d41d93c50a1697cbf32c1b1eac38c8 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Wed, 12 Nov 2025 18:31:21 +0800
Subject: [PATCH] feat: 条件编译调整
---
src/components/WebViewPlus.vue | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/components/WebViewPlus.vue b/src/components/WebViewPlus.vue
index 6052042..d697186 100644
--- a/src/components/WebViewPlus.vue
+++ b/src/components/WebViewPlus.vue
@@ -1,18 +1,20 @@
<template>
<web-view :src="src" @message="viewMessage" :allow="allow"/>
- #ifdef H5
+ <!-- #ifdef WEB -->
<TUICallKit/>
- #endif
+ <!-- #endif WEB -->
</template>
+
<script setup>
-// #ifdef H5
+// #ifdef WEB
import {TUICallKit} from "@trtc/calls-uikit-vue";
// #endif
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: {
--
Gitblit v1.9.3