diff --git a/src/views/data/dataCleansing.vue b/src/views/data/dataCleansing.vue index 38c481a..1e7d6d5 100644 --- a/src/views/data/dataCleansing.vue +++ b/src/views/data/dataCleansing.vue @@ -71,17 +71,17 @@ this.websock.onclose = this.websocketclose; }, websocketonopen: function () { - this.contentList.push("消息服务连接成功"); + this.contentList.unshift("消息服务连接成功"); }, websocketonerror: function (e) { - this.contentList.push("消息服务连接失败"+JSON.stringify(e)); + this.contentList.unshift("消息服务连接失败"+JSON.stringify(e)); }, websocketonmessage: function (e) { var data = eval("(" + e.data + ")"); console.log(data); //处理订阅信息 if(data.content.length >0){ - this.contentList.push(data.content); + this.contentList.unshift(data.content); } }, websocketclose: function (e) { diff --git a/src/views/data/dataManage.vue b/src/views/data/dataManage.vue index 310441a..f38413e 100644 --- a/src/views/data/dataManage.vue +++ b/src/views/data/dataManage.vue @@ -71,17 +71,17 @@ this.websock.onclose = this.websocketclose; }, websocketonopen: function () { - this.contentList.push("消息服务连接成功"); + this.contentList.unshift("消息服务连接成功"); }, websocketonerror: function (e) { - this.contentList.push("消息服务连接失败"+JSON.stringify(e)); + this.contentList.unshift("消息服务连接失败"+JSON.stringify(e)); }, websocketonmessage: function (e) { var data = eval("(" + e.data + ")"); console.log(data); //处理订阅信息 if(data.content.length >0){ - this.contentList.push(data.content); + this.contentList.unshift(data.content); } if(data.currProgress != null){ this.percent = data.currProgress;