From 9440b5c4c9a93288c0a590b371a2beb9ac4d91ae Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期一, 21 十月 2024 11:12:11 +0800
Subject: [PATCH] 教师端发版

---
 src/views/meet/index.vue |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/views/meet/index.vue b/src/views/meet/index.vue
index 9689ea2..ba5471a 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 () {
@@ -89,7 +90,7 @@
       this.sendMessage(JSON.stringify(command))
     },
     initWebSocket () {
-      this.ws = new WebSocket('wss://www.kgmeet.com::18080/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