吉安感知网项目-前端
罗广辉
2026-01-20 bcbcc546577c7c6643e7f0d4ac366f8a013bd306
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']),