|
|
|
@ -879,6 +879,8 @@ export default {
|
|
|
|
|
message: "下发指令成功!",
|
|
|
|
|
type: "success",
|
|
|
|
|
});
|
|
|
|
|
clearInterval(this.timer);
|
|
|
|
|
this.timer = null;
|
|
|
|
|
this.timer = window.setInterval(() => {
|
|
|
|
|
this.newPicApi();
|
|
|
|
|
this.i++;
|
|
|
|
@ -912,8 +914,9 @@ export default {
|
|
|
|
|
// // console.log(this.i);
|
|
|
|
|
if (res.data == true && this.i < 10) {
|
|
|
|
|
console.log(res.data);
|
|
|
|
|
this.i = 0;
|
|
|
|
|
|
|
|
|
|
clearInterval(this.timer);
|
|
|
|
|
this.i = 0;
|
|
|
|
|
this.timer = null;
|
|
|
|
|
this.btnpicloading = false;
|
|
|
|
|
this.btnvideoloading = false;
|
|
|
|
@ -930,9 +933,9 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
console.log("返回最新图片");
|
|
|
|
|
} else if (res.data == false && this.i > 10) {
|
|
|
|
|
this.i = 0;
|
|
|
|
|
clearInterval(this.timer);
|
|
|
|
|
this.timer = null;
|
|
|
|
|
this.i = 0;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|