Vben
2021-04-10 215d8bab380728164d7fe2958c2d2d1151fce892
src/views/sys/lock/index.vue
@@ -7,17 +7,13 @@
  import { defineComponent, computed } from 'vue';
  import LockPage from './LockPage.vue';
  import { lockStore } from '/@/store/modules/lock';
  import { useLockStore } from '/@/store/modules/lock';
  export default defineComponent({
    name: 'Lock',
    components: { LockPage },
    setup() {
      const getIsLock = computed(() => {
        const { getLockInfo } = lockStore;
        const { isLock } = getLockInfo;
        return isLock;
      });
      const lockStore = useLockStore();
      const getIsLock = computed(() => lockStore?.getLockInfo?.isLock ?? false);
      return { getIsLock };
    },
  });