@@ -43,7 +43,16 @@ export default {
watch: {
snapNow(val) {
if (val) {
- this.snapTimer();
+ if (!this.lastSnapTime || Date.now() - this.lastSnapTime > 60 * 1000) {
+ this.lastSnapTime = Date.now();
+ this.snapTimer();
+ } else {
+ this.serverLog(
+ "debug/S-002001",
+ "上次的抓拍未超过1分钟,本次抓拍指令取消"
+ );
+ this.decreaseSnapCount();
+ }
this.toggleSnapNow();
}
},