From 3a777aa58e4e489a131c8e6654472313da472348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Fri, 10 Mar 2023 09:56:21 +0800 Subject: [PATCH] =?UTF-8?q?body=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compenents/left-menu/index.tsx | 10 ++++++++++ src/pages/home/index.module.less | 7 +++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/compenents/left-menu/index.tsx b/src/compenents/left-menu/index.tsx index 7c9cfde..04ef101 100644 --- a/src/compenents/left-menu/index.tsx +++ b/src/compenents/left-menu/index.tsx @@ -59,6 +59,16 @@ const items = [ ], null ), + getItem( + "系统设置", + "7", + , + [ + getItem("管理人员", "/system/administrator", null, null, null), + getItem("角色配置", "/system/adminroles", null, null, null), + ], + null + ), ]; const children2Parent: any = { diff --git a/src/pages/home/index.module.less b/src/pages/home/index.module.less index 7b8a0e9..7c49d81 100644 --- a/src/pages/home/index.module.less +++ b/src/pages/home/index.module.less @@ -1,12 +1,14 @@ .layout-wrap { width: 100%; - height: 100vh; + height: 100%; display: flex; .left-menu { width: 200px; + height: auto; + float: left; } .right-cont { - width: calc(100% - 200px); + flex:1; display: flex; flex-direction: column; .right-top { @@ -15,6 +17,7 @@ } .right-main { width: 100%; + height: auto; box-sizing: border-box; -moz-box-sizing: border-box; /* Firefox */