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); },