From c098116879a97c29714c58e0294a4dd756559066 Mon Sep 17 00:00:00 2001 From: 18792927508 <1322446236@qq.com> Date: Tue, 5 Mar 2024 15:17:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/css/app.b59bb92e.css | 1 - dist/index.html | 2 +- src/components/homeh5.vue | 24 ++++++++++++------------ src/views/room.vue | 1 - 4 files changed, 13 insertions(+), 15 deletions(-) delete mode 100644 dist/css/app.b59bb92e.css diff --git a/dist/css/app.b59bb92e.css b/dist/css/app.b59bb92e.css deleted file mode 100644 index 3ebcab27..00000000 --- a/dist/css/app.b59bb92e.css +++ /dev/null @@ -1 +0,0 @@ -*{margin:0;padding:0}#app{font-family:Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50} \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index cdf2742a..a30e0918 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -nouiroom
\ No newline at end of file +nouiroom
\ No newline at end of file diff --git a/src/components/homeh5.vue b/src/components/homeh5.vue index a54d3eba..7bbbdb74 100644 --- a/src/components/homeh5.vue +++ b/src/components/homeh5.vue @@ -35,20 +35,21 @@ export default { }, methods: { async enterRoom() { - if (this.roomId != this.enterRoomFrom.roomId) { - this.$message({ - message: "房间号不是对应案件的房间号", - type: "error" - }); - return; - } + // if (this.roomId != this.enterRoomFrom.roomId) { + // this.$message({ + // message: "房间号不是对应案件的房间号", + // type: 'error' + // }); + // return + // } this.$router.push({ name: "Room", query: { userId: this.userId, - roomId: this.enterRoomFrom.roomId, + roomId: this.roomId, flag: this.roleFlag, - caseId: this.caseId + caseId: this.caseId, + id: this.userCode } }); }, @@ -58,13 +59,13 @@ export default { // 根据案件id查询主持人信息 async reserveConferenceListFn(data) { await reserveConferenceList(data).then(res => { - if (res.data.length > 1) { + if (res.data.length >= 1) { if (this.userCode == res.data[0].userId) { this.roleFlag = true; } else { this.roleFlag = false; } - } else { + }else{ this.roleFlag = false; } }); @@ -76,7 +77,6 @@ export default { this.roomId = routeParams.roomId; this.userCode = routeParams.userId; this.caseId = routeParams.id; - sessionStorage.setItem('type',appType); if (this.caseId) { await this.reserveConferenceListFn(this.caseId); await this.enterRoom(); diff --git a/src/views/room.vue b/src/views/room.vue index c3d20075..f5efd723 100644 --- a/src/views/room.vue +++ b/src/views/room.vue @@ -286,7 +286,6 @@ export default { needvad: 1, audioTrack: trtc.getAudioTrack(), }); - console.log(trtc.getAudioTrack('zhongcaibai'),); this.localStreamAsr.start(); // 开始识别 this.localStreamAsr.OnRecognitionStart = (res) => {