isLoggedInフラグを正しく読めるように

This commit is contained in:
rca 2024-07-19 00:16:13 +09:00
parent 66d7529024
commit 54163fbc18

View File

@ -16,8 +16,18 @@
</template>
<script setup lang="ts">
import { ref } from 'vue';
import EssentialLink, { EssentialLinkProps } from 'components/EssentialLink.vue';
import useStore from 'src/store';
const store = useStore();
if (store.state.account.isLoggedIn) {
// debug, show alert
alert('User is logged in');
} else {
// debug, show alert
alert('User is not logged in');
}
defineOptions({
name: 'MainLayout'