| | |
| | | |
| | | import { getIndividualList } from "@/api/self"; |
| | | import { Loading } from 'element-ui' |
| | | //导入接口函数 --接好了 |
| | | import { getWebcastInfo } from "@/api/meeting/index"; |
| | | export default { |
| | | name: '6666', |
| | | components: { |
| | |
| | | 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 => { |