Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <div>
- <v-div v-if="this.loggedIn">
- <barra></barra>
- </v-div>
- <v-div v-else>
- <login class="bg-secondary"></login>
- </v-div>
- </div>
- </template>
- <script>
- import login from './components/login.vue'
- import barra from './components/barra.vue'
- export default{
- components: {login, barra},
- data: {
- session: null,
- },
- computed:{
- loggedIn: function() {
- return Boolean(sessionStorage.getItem("user"));
- }
- }
- }
- </script>
- <style>
- .background{
- background-color: aqua
- }
- </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement