添加自动通道刷新

This commit is contained in:
648540858 2020-11-19 16:11:13 +08:00
parent 87f49874c6
commit 120eaa534e

View File

@ -104,7 +104,7 @@ export default {
mounted() {
this.initData();
// this.updateLooper = setInterval(this.initData, 10000);
this.updateLooper = setInterval(this.initData, 10000);
},
destroyed() {
this.$destroy('videojs');
@ -173,24 +173,6 @@ export default {
},
//gb28181
//
refDevice: function (itemData) {
///api/devices/{deviceId}/sync
console.log("刷新对应设备:" + itemData.deviceId);
this.$axios({
method: 'post',
url: '/api/devices/' + itemData.deviceId + '/sync'
}).then(function (res) {
// console.log(""+JSON.stringify(res));
}).catch(function (e) {
that.$message({
showClose: true,
message: '请求成功',
type: 'success'
});
});
},
//
sendDevicePush: function (itemData) {
console.log(itemData)