浏览代码

Merge pull request #174 from chenparty/wvp-28181-2.0

修正首次打开页面报请求失败的提示
648540858 4 年之前
父节点
当前提交
c81cc4313a
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      web_src/src/components/control.vue

+ 1 - 3
web_src/src/components/control.vue

@@ -137,15 +137,13 @@ export default {
     mounted() {
     mounted() {
 
 
         this.initTable();
         this.initTable();
-        this.updateData();
         this.chartInterval = setInterval(this.updateData, 3000);
         this.chartInterval = setInterval(this.updateData, 3000);
         this.mediaServer.getOnlineMediaServerList((data)=>{
         this.mediaServer.getOnlineMediaServerList((data)=>{
           this.mediaServerList = data.data;
           this.mediaServerList = data.data;
           if (this.mediaServerList && this.mediaServerList.length > 0) {
           if (this.mediaServerList && this.mediaServerList.length > 0) {
             this.mediaServerChoose = this.mediaServerList[0].id
             this.mediaServerChoose = this.mediaServerList[0].id
             this.loadCount = this.mediaServerList[0].count;
             this.loadCount = this.mediaServerList[0].count;
-            this.getThreadsLoad();
-            this.getAllSession();
+            this.updateData();
           }
           }
         })
         })
     },
     },