diff --git a/admin/src/App.vue b/admin/src/App.vue index dfaca1b..6eb4a35 100644 --- a/admin/src/App.vue +++ b/admin/src/App.vue @@ -66,26 +66,31 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + @@ -130,6 +135,9 @@ mainElContainerStyle: { height: 0 }, + mainChildElContainerStyle: { + height: 0 + }, mainElHeaderStyle: { height: "50px", }, @@ -142,7 +150,8 @@ logoutBtnStyle: {}, showSearchInput: false, searchInputText: null, - userDto: {} + userDto: {}, + elAsideShow: true } }, mounted() { @@ -187,8 +196,11 @@ resizeListener() { //设定容器高度 this.mainElContainerStyle.height = window.innerHeight + 'px'; + this.mainChildElContainerStyle.height = (window.innerHeight - 50) + 'px'; //设定框宽度 this.searchInputStyle.width = window.innerWidth - 200 - 10 + 'px'; + //判断是否显示菜单栏 + this.elAsideShow = window.innerWidth > 1366 ? true : false; }, //搜索输入框显示和隐藏 searchInputDivShowHidden() { @@ -329,7 +341,6 @@ overflow: hidden; .footer { - margin-top: 10px; .el-divider--horizontal { margin: 0px 0px 10px 0px; diff --git a/admin/src/components/home.vue b/admin/src/components/home.vue index 15179ae..b331929 100644 --- a/admin/src/components/home.vue +++ b/admin/src/components/home.vue @@ -15,8 +15,6 @@