From f85006844550bd25c98fcbe841b903ff4d98761e Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 20 Jan 2026 09:06:50 +0800
Subject: [PATCH] feat:éšćć€ç
---
applications/drone-command/src/page/lock/index.vue | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/applications/drone-command/src/page/lock/index.vue b/applications/drone-command/src/page/lock/index.vue
index 2215769..9b65ab3 100644
--- a/applications/drone-command/src/page/lock/index.vue
+++ b/applications/drone-command/src/page/lock/index.vue
@@ -45,6 +45,7 @@
data() {
return {
time: '',
+ timeTimer: null,
passwd: '',
passwdError: false,
pass: false,
@@ -52,10 +53,17 @@
},
created() {
this.getTime();
- setInterval(() => {
+ if (this.timeTimer) clearInterval(this.timeTimer);
+ this.timeTimer = setInterval(() => {
this.getTime();
}, 1000);
},
+ beforeDestroy() {
+ if (this.timeTimer) {
+ clearInterval(this.timeTimer);
+ this.timeTimer = null;
+ }
+ },
mounted() {},
computed: {
...mapGetters(['userInfo', 'tag', 'lockPasswd']),
--
Gitblit v1.9.3