| | |
| | | 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 }; |
| | | }, |
| | | }); |