init
This commit is contained in:
40
src/App.vue
Normal file
40
src/App.vue
Normal file
@@ -0,0 +1,40 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user