mirror of
https://github.com/r-ca/kidshift-web.git
synced 2024-10-25 16:34:01 +00:00
isLoggedInフラグを正しく読めるように
This commit is contained in:
parent
66d7529024
commit
54163fbc18
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue
Block a user