update files

This commit is contained in:
nuintun 2016-01-14 14:23:05 +08:00
parent f3866a820b
commit c1cb03390b
2 changed files with 1 additions and 2 deletions

View File

@ -22,7 +22,7 @@ function DecodeGenerator(){
var charset;
return function (data){
if (data) {
if (Buffer.isBuffer(data)) {
if (charset === undefined) {
charset = jschardet.detect(data).encoding;
}

View File

@ -216,7 +216,6 @@ module.exports = Vue.component('app-main', {
case 'data':
break;
case 'error':
data = '\u001b[31m发生错误: \u001b[0m' + data + '\r\n';
break;
case 'close':
data = '\u001b[32m' + (status === 1 ? '执行' : '结束') + '命令成功\u001b[0m\r\n';