From 35905a277996948cbe6581b42b9108ed85d1bdc1 Mon Sep 17 00:00:00 2001 From: "xie.bx" Date: Tue, 8 Nov 2022 22:45:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7=E5=90=8D?= =?UTF-8?q?=E4=B8=AD=E6=96=87=E4=B9=B1=E7=A0=81=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-ui/src/components/chat/ChatVoice.vue | 4 +++- im-ui/src/view/Login.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/im-ui/src/components/chat/ChatVoice.vue b/im-ui/src/components/chat/ChatVoice.vue index 80b335a..cf3ff97 100644 --- a/im-ui/src/components/chat/ChatVoice.vue +++ b/im-ui/src/components/chat/ChatVoice.vue @@ -48,7 +48,8 @@ methods: { handleClose() { // 关闭前清除数据 - this.rc.stop(); + this.rc.destroy(); + this.rc = new Recorder(); this.audio.pause(); this.mode = 'RECORD'; this.state = 'STOP'; @@ -118,6 +119,7 @@ url: url } this.$emit("send", data); + this.handleClose(); }) } } diff --git a/im-ui/src/view/Login.vue b/im-ui/src/view/Login.vue index 2583a8c..7a43dfc 100644 --- a/im-ui/src/view/Login.vue +++ b/im-ui/src/view/Login.vue @@ -85,7 +85,7 @@ let reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)"); let arr = document.cookie.match(reg) if (arr){ - return (arr[2]); + return unescape(arr[2]); } return ''; },