| | |
| | | method: 'get', |
| | | url: '/zlm/' + that.mediaServerChoose + '/index/api/getThreadsLoad' |
| | | }).then(function (res) { |
| | | if (res.data.code == 0) { |
| | | if (res.data.code === 0) { |
| | | that.tableOption.xAxis.data.push(new Date().toLocaleTimeString('chinese', { |
| | | hour12: false |
| | | })); |
| | |
| | | if (!!this.mediaServerChoose) { |
| | | this.$axios({ |
| | | method: 'get', |
| | | url: '/zlm/' + that.mediaServerChoose + '/index/api/getServerConfig' |
| | | url: '/zlm/' + this.mediaServerChoose + '/index/api/getServerConfig' |
| | | }).then((res)=> { |
| | | let info = res.data.data[0]; |
| | | let serverInfo = {} |
| | |
| | | url: '/zlm/' + that.mediaServerChoose + '/index/api/restartServer' |
| | | }).then(function (res) { |
| | | that.getAllSession(); |
| | | if (res.data.code == 0) { |
| | | if (res.data.code === 0) { |
| | | that.$message({ |
| | | type: 'success', |
| | | message: '操作完成' |