From 828b5c6a6d67d0049de7b144e224ae73f7552250 Mon Sep 17 00:00:00 2001 From: RenCheng Date: Sat, 1 Mar 2025 17:03:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B0=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=8F=8D=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/dataCleansing.vue | 6 +++--- src/views/data/dataManage.vue | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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;