change to vh

This commit is contained in:
KyleBing 2023-09-25 11:47:01 +08:00
parent de481f6abf
commit 2ca41612e2
1 changed files with 1 additions and 11 deletions

View File

@ -1,5 +1,5 @@
<template>
<el-container id="app" :style="`min-height: ${heightMinContainer}px`">
<el-container id="app">
<el-main class="p-0">
<Home />
</el-main>
@ -41,18 +41,8 @@ export default {
data() {
return {
version: config.version,
heightMinContainer: 800
};
},
created() {
this.$nextTick(() => {
this.heightMinContainer = innerHeight
this.finishLoad()
window.onresize = () => {
this.heightMinContainer = innerHeight
}
});
},
methods: {
async finishLoad() {
const mask = document.getElementById('loader-mask');