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 ''; },