ZhangXianQiang
2024-07-01 8ccf0848c12460cbfb939c1f8da6e11a602eccea
src/views/meet/index.vue
@@ -6,14 +6,19 @@
<script setup>
import { ref, onMounted } from 'vue';
import {useRoute} from 'vue-router';
const route = useRoute();
const meet = ref(null);
const {meetName, id} = route.query;
let jitsiApi = null;
onMounted(() => {
  const width = window.innerWidth;
  const height = window.innerHeight;
  const domain = 'ycl.easyblog.vip:8443';
  const domain = 'ycl.easyblog.vip:8443/' + id;
  const options = {
    roomName: 'test',
    roomName: meetName,
    width: width,
    height: height,
    parentNode: meet.value,
@@ -26,7 +31,9 @@
        enabled: true
      }
    },
    toolbarButtons: ['whiteboard']
    userInfo: {
      displayName: '测试测试'
    }
  };
  jitsiApi = new JitsiMeetExternalAPI(domain, options);
  jitsiInit();