From 9c376c3c54702b872ad690055c7bac16b64e817c Mon Sep 17 00:00:00 2001 From: yz3456 <2753272399@qq.com> Date: 星期一, 01 七月 2024 18:13:23 +0800 Subject: [PATCH] 完成了直播roomId的添加,完成了家庭小医生分享模块 --- ruoyi-ui/src/views/meeting/Home.vue | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/meeting/Home.vue b/ruoyi-ui/src/views/meeting/Home.vue index 6ed5520..9144f00 100644 --- a/ruoyi-ui/src/views/meeting/Home.vue +++ b/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 => { -- Gitblit v1.9.1