2019-04-10 10:47:45 +02:00
|
|
|
<template lang="html">
|
2019-04-11 00:12:23 +02:00
|
|
|
<UserTools v-if="isloggedin" />
|
2019-05-21 14:56:34 +02:00
|
|
|
<Login v-bind:title="title" v-bind:form="form" v-else />
|
2019-04-10 10:47:45 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import { mapState, mapActions } from 'vuex'
|
|
|
|
|
|
|
|
import Login from 'vuejs/components/User/Login'
|
|
|
|
import UserTools from 'vuejs/components/User/UserTools'
|
|
|
|
|
|
|
|
export default {
|
2019-05-21 14:56:34 +02:00
|
|
|
props: ['title', 'form'],
|
2019-04-10 10:47:45 +02:00
|
|
|
computed: {
|
|
|
|
...mapState({
|
2019-04-11 00:12:23 +02:00
|
|
|
isloggedin: state => state.User.isloggedin
|
2019-04-10 10:47:45 +02:00
|
|
|
})
|
|
|
|
},
|
|
|
|
components: {
|
|
|
|
Login,
|
|
|
|
UserTools
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="css" scoped>
|
|
|
|
|
|
|
|
</style>
|