update to vh

This commit is contained in:
KyleBing 2023-09-25 12:13:36 +08:00
parent de481f6abf
commit 9afc20246a
1 changed files with 2 additions and 7 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>
@ -40,17 +40,12 @@ export default {
},
data() {
return {
version: config.version,
heightMinContainer: 800
version: config.version
};
},
created() {
this.$nextTick(() => {
this.heightMinContainer = innerHeight
this.finishLoad()
window.onresize = () => {
this.heightMinContainer = innerHeight
}
});
},
methods: {