Browse Source

修复用户名中文乱码的bug

master
xie.bx 3 years ago
parent
commit
35905a2779
  1. 4
      im-ui/src/components/chat/ChatVoice.vue
  2. 2
      im-ui/src/view/Login.vue

4
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();
})
}
}

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

Loading…
Cancel
Save