From bcbcc546577c7c6643e7f0d4ac366f8a013bd306 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Tue, 20 Jan 2026 13:47:19 +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