update to vh
This commit is contained in:
parent
de481f6abf
commit
9afc20246a
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-container id="app" :style="`min-height: ${heightMinContainer}px`">
|
<el-container id="app">
|
||||||
<el-main class="p-0">
|
<el-main class="p-0">
|
||||||
<Home />
|
<Home />
|
||||||
</el-main>
|
</el-main>
|
||||||
@ -40,17 +40,12 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
version: config.version,
|
version: config.version
|
||||||
heightMinContainer: 800
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.heightMinContainer = innerHeight
|
|
||||||
this.finishLoad()
|
this.finishLoad()
|
||||||
window.onresize = () => {
|
|
||||||
this.heightMinContainer = innerHeight
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
Loading…
Reference in New Issue
Block a user