32 lines
493 B
Vue
32 lines
493 B
Vue
<template lang="html">
|
|
<UserTools v-if="isloggedin" />
|
|
<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({
|
|
isloggedin: state => state.User.isloggedin
|
|
})
|
|
},
|
|
components: {
|
|
Login,
|
|
UserTools
|
|
}
|
|
}
|
|
|
|
</script>
|
|
|
|
<style lang="css" scoped>
|
|
|
|
</style>
|