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']),