yz3456
2024-07-01 9c376c3c54702b872ad690055c7bac16b64e817c
ruoyi-ui/src/views/meeting/Home.vue
@@ -65,6 +65,8 @@
import { getIndividualList } from "@/api/self";
import { Loading } from 'element-ui'
  //导入接口函数  --接好了
  import { getWebcastInfo } from "@/api/meeting/index";
export default {
  name: '6666',
  components: {
@@ -83,16 +85,23 @@
      sdkAppId: 1600032250,
      secretKey: 'abedcf588654e18888eff65dfdfde240a882c611710c6ed10e1044fb44818a89',
      userId: '',
      roomId: 123,
      roomId: '',
      cameraId: '',
      microphoneId: '',
    };
  },
  created() {
    this.getUser();
    this.getRoomId();
  },
  methods: {
    // 获取房间号
    getRoomId(){
      const id = this.$route.params && this.$route.params.id;
      getWebcastInfo(id).then(response => {
        this.roomId = response.data.roomId
      })
    },
    // 获取用户名
    getUser(id) {
      getIndividualList().then(response => {