index.vue 558 B

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