From c4e8cf8a34c833b1cb4847dec77fe1ae07193b49 Mon Sep 17 00:00:00 2001 From: chenparty <870300816@qq.com> Date: Sun, 26 Sep 2021 15:21:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=A6=96=E6=AC=A1=E6=89=93?= =?UTF-8?q?=E5=BC=80=E9=A1=B5=E9=9D=A2=E6=8A=A5=E8=AF=B7=E6=B1=82=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mediaServerChoose获取到之前,执行updateData, 会导致getAllSession函数获取不到mediaServerChoose。 --- web_src/src/components/control.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web_src/src/components/control.vue b/web_src/src/components/control.vue index a8ee8d41..576f9422 100644 --- a/web_src/src/components/control.vue +++ b/web_src/src/components/control.vue @@ -137,15 +137,13 @@ export default { mounted() { this.initTable(); - this.updateData(); this.chartInterval = setInterval(this.updateData, 3000); this.mediaServer.getOnlineMediaServerList((data)=>{ this.mediaServerList = data.data; if (this.mediaServerList && this.mediaServerList.length > 0) { this.mediaServerChoose = this.mediaServerList[0].id this.loadCount = this.mediaServerList[0].count; - this.getThreadsLoad(); - this.getAllSession(); + this.updateData(); } }) },