From 6c2364e6b37ad4cb57fd7b2146b0e6bf40eef434 Mon Sep 17 00:00:00 2001 From: luohairen <3399054449@qq.com> Date: 星期一, 28 十月 2024 15:25:53 +0800 Subject: [PATCH] 解决点击主页退出系统的问题 --- src/views/meet/index.vue | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/views/meet/index.vue b/src/views/meet/index.vue index 4512368..5f0af13 100644 --- a/src/views/meet/index.vue +++ b/src/views/meet/index.vue @@ -51,6 +51,7 @@ <script> import { getStudentList } from '@/api/meet' +import Cookies from 'js-cookie' export default { data () { @@ -81,15 +82,27 @@ methods: { muteEveryone () { this.jitsiApi.executeCommand('muteEveryone', 'audio') + const h = this.$createElement; + + this.$notify({ + title: '鎻愮ず', + message: h('i', { style: 'color: teal'}, '宸插叏浣撶闊�') + }); }, videoEveryone () { this.jitsiApi.executeCommand('muteEveryone', 'video') + const h = this.$createElement; + + this.$notify({ + title: '鎻愮ず', + message: h('i', { style: 'color: teal'}, '宸插叧闂叏浣撹棰�') + }); }, handleCommand (command) { this.sendMessage(JSON.stringify(command)) }, initWebSocket () { - this.ws = new WebSocket('wss://www.kgmeet.com/websocket/' + 1) + this.ws = new WebSocket('wss://www.kgmeet.com:18080/websocket/' + JSON.parse(Cookies.get('adminUserInfo')).id) let ws = this.ws ws.onopen = () => { console.log('WebSocket 杩炴帴鎴愬姛') -- Gitblit v1.8.0