From 72ef22c566aa69d41197bcf39fc5e819c885594c Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 20 Jan 2026 09:10:48 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 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