<template>
  <div id="app">
    <v-toast v-show="showToast"></v-toast>
    <v-alert v-show="showAlert"></v-alert>
    <v-loading v-show="loading"></v-loading>
    <router-view/>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import toast from '@/components/toast'
import alert from '@/components/alert'
import loading from '@/components/loading'
export default {
  name: 'App',
  components: {
    'v-toast': toast,
    'v-alert': alert,
    'v-loading': loading
  },
  data () {
    return {
    }
  },
  computed: {
    ...mapGetters(['showToast', 'showAlert', 'loading'])
  }
}
</script>
