Files
screen-shunhe/src/App.vue

35 lines
727 B
Vue
Raw Normal View History

2023-08-14 09:37:35 +08:00
<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'])
2023-11-09 16:54:10 +08:00
},
mounted () {
2023-12-28 09:59:32 +08:00
const htmlStyle = document.getElementsByTagName('html')[0].style
if (window.screen.height <= 1080) {
htmlStyle.height = 1080
} else {
htmlStyle.height = 1200
}
2023-08-14 09:37:35 +08:00
}
}
</script>