70 lines
1.6 KiB
Vue
70 lines
1.6 KiB
Vue
<template>
|
|
<div id="app" class="app">
|
|
<v-toast v-show="showToast"></v-toast>
|
|
<v-alert v-show="showAlert"></v-alert>
|
|
<v-loading v-show="loading"></v-loading>
|
|
<!-- <router-view/> -->
|
|
<!-- <keep-alive :include="hcxinfo">
|
|
<router-view/>
|
|
</keep-alive> -->
|
|
<keep-alive>
|
|
<router-view :key="$route.name" v-if="$route.meta.keepAlive"/>
|
|
</keep-alive>
|
|
<router-view :key="$route.name" v-if="!$route.meta.keepAlive"/>
|
|
<!-- <router-link v-if="$route.path !== '/home' && $route.path !== '/setup'" class="back_home" to="/home"></router-link>
|
|
<button v-if="$route.path === '/home'" class="back_exit" @click="_exit"></button> -->
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { mapGetters } from 'vuex'
|
|
import toast from '@/components/toast'
|
|
import alert from '@/components/alert'
|
|
import loading from '@/components/loading'
|
|
// import { isOperateFun } from '@/config/isOperate.js'
|
|
export default {
|
|
name: 'App',
|
|
components: {
|
|
'v-toast': toast,
|
|
'v-alert': alert,
|
|
'v-loading': loading
|
|
},
|
|
data () {
|
|
return {
|
|
}
|
|
},
|
|
computed: {
|
|
...mapGetters(['showToast', 'showAlert', 'loading'])
|
|
},
|
|
created () {
|
|
// isOperateFun()
|
|
},
|
|
methods: {
|
|
_exit () {
|
|
window.close()
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="stylus" scoped>
|
|
@import '~@style/mixin'
|
|
.app
|
|
width 100%
|
|
height 100%
|
|
.back_home
|
|
position fixed
|
|
bottom 0
|
|
right 0
|
|
_wh(90px,90px)
|
|
_bis('./images/aio/back_home.png',100%)
|
|
z-index 100
|
|
.back_exit
|
|
position fixed
|
|
bottom 0
|
|
right 0
|
|
_wh(90px,90px)
|
|
_bis('./images/aio/back_exit.png',100%)
|
|
z-index 100
|
|
</style>
|