Blame view

src/views/sys/lock/index.vue 592 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
10

  import { lockStore } from '/@/store/modules/lock';
陈文彬 authored
11
  export default defineComponent({
vben authored
12
13
    name: 'Lock',
    components: { LockPage },
陈文彬 authored
14
    setup() {
Vben authored
15
16
17
18
19
20
      const getIsLock = computed(() => {
        const { getLockInfo } = lockStore;
        const { isLock } = getLockInfo;
        return isLock;
      });
vben authored
21
      return { getIsLock };
陈文彬 authored
22
23
24
    },
  });
</script>