index.tsx 469 B

1234567891011121314151617
  1. import { defineComponent, unref, computed } from 'vue';
  2. import { appStore } from '/@/store/modules/app';
  3. import LockPage from '/@/views/sys/lock/index.vue';
  4. export default defineComponent({
  5. name: 'LayoutLockPage',
  6. setup() {
  7. const getIsLockRef = computed(() => {
  8. const { getLockInfo } = appStore;
  9. const { isLock } = getLockInfo;
  10. return isLock;
  11. });
  12. return () => {
  13. return unref(getIsLockRef) ? <LockPage /> : null;
  14. };
  15. },
  16. });