materio-d9/web/themes/custom/materiotheme/vuejs/components/User/UserBlock.vue

32 lines
478 B
Vue
Raw Normal View History

2019-04-10 10:47:45 +02:00
<template lang="html">
<UserTools v-if="token" />
<Login v-else />
</template>
<script>
import { mapState, mapActions } from 'vuex'
import Login from 'vuejs/components/User/Login'
import UserTools from 'vuejs/components/User/UserTools'
export default {
// data () {
// return {}
// },
computed: {
...mapState({
token: state => state.User.token
})
},
components: {
Login,
UserTools
}
}
</script>
<style lang="css" scoped>
</style>