Commit c81cc4313a62522c3822a2d88af67a6b2e151cd9

Authored by 648540858
Committed by GitHub
2 parents 715c7d27 24cfd2e7

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

修正首次打开页面报请求失败的提示
web_src/src/components/control.vue
... ... @@ -137,15 +137,13 @@ export default {
137 137 mounted() {
138 138  
139 139 this.initTable();
140   - this.updateData();
141 140 this.chartInterval = setInterval(this.updateData, 3000);
142 141 this.mediaServer.getOnlineMediaServerList((data)=>{
143 142 this.mediaServerList = data.data;
144 143 if (this.mediaServerList && this.mediaServerList.length > 0) {
145 144 this.mediaServerChoose = this.mediaServerList[0].id
146 145 this.loadCount = this.mediaServerList[0].count;
147   - this.getThreadsLoad();
148   - this.getAllSession();
  146 + this.updateData();
149 147 }
150 148 })
151 149 },
... ...