Commit c81cc4313a62522c3822a2d88af67a6b2e151cd9
Committed by
GitHub
Merge pull request #174 from chenparty/wvp-28181-2.0
修正首次打开页面报请求失败的提示
Showing
1 changed file
with
1 additions
and
3 deletions
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 | }, | ... | ... |