File tree 1 file changed +1
-13
lines changed 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" layout" >
3
- <el-container >
3
+ <el-container style = " min-height : 100 vh " >
4
4
<el-header >
5
5
<div width =" 200px" class =" logo" ></div >
6
6
</el-header >
72
72
this .defaultActive = this .$route .path .split (' /' )[1 ] ? this .$route .path .split (' /' )[1 ] : ' item1' ;
73
73
},
74
74
mounted () {
75
- const layoutMain = $ (' .el-main' );
76
- const aside = $ (' .el-aside' );
77
- let heightMain = ` ${ $ (window ).height () - 120 } px` ;
78
- let heightSide = ` ${ $ (window ).height () - 60 } px` ;
79
- layoutMain .css (' height' , heightMain);
80
- aside .css (' height' , heightSide);
81
- $ (window ).resize (() => {
82
- heightMain = ` ${ $ (window ).height () - 127 } px` ;
83
- heightSide = ` ${ $ (window ).height () - 60 } px` ;
84
- layoutMain .css (' height' , heightMain);
85
- aside .css (' height' , heightSide);
86
- });
87
75
this .doQuery ();
88
76
},
89
77
You can’t perform that action at this time.
0 commit comments