Blame view

src/views/sys/lock/index.vue 558 Bytes
陈文彬 authored
1
<template>
vben authored
2
3
4
  <transition name="fade-bottom" mode="out-in">
    <LockPage v-if="getIsLock" />
  </transition>
陈文彬 authored
5
6
</template>
<script lang="ts">
Vben authored
7
  import { defineComponent, computed } from 'vue';
vben authored
8
  import LockPage from './LockPage.vue';
Vben authored
9
Vben authored
10
  import { useLockStore } from '/@/store/modules/lock';
陈文彬 authored
11
  export default defineComponent({
vben authored
12
13
    name: 'Lock',
    components: { LockPage },
陈文彬 authored
14
    setup() {
Vben authored
15
16
      const lockStore = useLockStore();
      const getIsLock = computed(() => lockStore?.getLockInfo?.isLock ?? false);
vben authored
17
      return { getIsLock };
陈文彬 authored
18
19
20
    },
  });
</script>