materio-d9/web/themes/custom/materiotheme/vuejs/components/Content/Test.vue

23 lines
453 B
Vue
Raw Normal View History

<template lang="html">
<div id="block-pagetitle" class="">
<h1>Test Shared Store ( logged in: {{ isloggedin }} )</h1>
<h2 v-if="isloggedin">Shared store is working</h2>
</div>
</template>
<script>
import { mapState, mapActions } from 'vuex'
export default {
computed: {
...mapState({
token: state => state.User.token,
isloggedin: state => state.User.isloggedin
})
}
}
</script>
<style lang="scss" scoped>
</style>