fuliqi
2024-10-21 9440b5c4c9a93288c0a590b371a2beb9ac4d91ae
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 连接成功')