From 08fcc710d0a2acb185b3477d72fe32aff6f2e29a Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Mon, 01 Dec 2025 16:23:03 +0800
Subject: [PATCH] feat:增加ws连接状态
---
src/components/WebViewPlus.vue | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/components/WebViewPlus.vue b/src/components/WebViewPlus.vue
index 6052042..437b7a8 100644
--- a/src/components/WebViewPlus.vue
+++ b/src/components/WebViewPlus.vue
@@ -1,18 +1,15 @@
<template>
<web-view :src="src" @message="viewMessage" :allow="allow"/>
- #ifdef H5
- <TUICallKit/>
- #endif
</template>
+
<script setup>
-// #ifdef H5
-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