Vben
2021-02-25 8a9ca498d70a0a4f66c073fe869fc6d8a3e79a55
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<template>
  <transition name="fade-bottom" mode="out-in">
    <LockPage v-if="getIsLock" />
  </transition>
</template>
<script lang="ts">
  import { defineComponent, computed } from 'vue';
  import LockPage from './LockPage.vue';
 
  import { lockStore } from '/@/store/modules/lock';
  export default defineComponent({
    name: 'Lock',
    components: { LockPage },
    setup() {
      const getIsLock = computed(() => {
        const { getLockInfo } = lockStore;
        const { isLock } = getLockInfo;
        return isLock;
      });
 
      return { getIsLock };
    },
  });
</script>