init
This commit is contained in:
32
src/App.vue
Normal file
32
src/App.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<v-toast v-show="showToast"></v-toast>
|
||||
<v-dialog v-show="showAlert"></v-dialog>
|
||||
<router-view/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import toast from '@/components/toast'
|
||||
import dialog from '@/components/dialog'
|
||||
import { mapGetters } from 'vuex'
|
||||
export default {
|
||||
name: 'App',
|
||||
components: {
|
||||
'v-toast': toast,
|
||||
'v-dialog': dialog
|
||||
},
|
||||
data () {
|
||||
return {}
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(['showToast', 'showAlert'])
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
#app
|
||||
width 100%
|
||||
height 100%
|
||||
</style>
|
||||
Reference in New Issue
Block a user