<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>
    <keep-alive :include="keepAlive" >
      <router-view/>
    </keep-alive>
  </div>
</template>

<script>
import toast from '@/components/toast'
import alert from '@/components/alert'
import loading from '@/components/loading'
// import { isOperateFun } from '@/config/isOperate.js'

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

<style lang="stylus">
@import '~@style/common'
</style>
