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/login/index.vue | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/applications/drone-command/src/page/login/index.vue b/applications/drone-command/src/page/login/index.vue
index 4453760..ad005da 100644
--- a/applications/drone-command/src/page/login/index.vue
+++ b/applications/drone-command/src/page/login/index.vue
@@ -56,6 +56,7 @@
},
website: website,
time: '',
+ timeTimer: null,
activeName: 'user',
socialForm: {
tenantId: '000000',
@@ -82,6 +83,12 @@
computed: {
...mapGetters(['tagWel']),
},
+ beforeDestroy() {
+ if (this.timeTimer) {
+ clearInterval(this.timeTimer);
+ this.timeTimer = null;
+ }
+ },
props: [],
methods: {
// 动态获取系统名称
@@ -93,7 +100,8 @@
})
},
getTime() {
- setInterval(() => {
+ if (this.timeTimer) clearInterval(this.timeTimer);
+ this.timeTimer = setInterval(() => {
this.time = this.$dayjs().format('YYYY-MM-DD HH:mm:ss');
}, 1000);
},
--
Gitblit v1.9.3