Commit f5c5846e authored by YangAo's avatar YangAo 🇨🇳

样式修改

parent ddebf46a
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
import { join } from "path"; import { join } from "path";
import Item from "@/layout/Second/Sidebar/Item"; import Item from "@/layout/Second/Sidebar/Item";
import clone from 'clone'; import clone from "clone";
export default { export default {
name: "Sidebar", name: "Sidebar",
...@@ -63,9 +63,9 @@ export default { ...@@ -63,9 +63,9 @@ export default {
* @param menuItemList 原始菜单列表 * @param menuItemList 原始菜单列表
* @param basePath 前缀路径 * @param basePath 前缀路径
*/ */
initMenuItemList(menuItemList, basePath = '/') { initMenuItemList(menuItemList, basePath = "/") {
return menuItemList.map(item => { return menuItemList.map(item => {
item = clone(item) item = clone(item);
// 判断是否以basePath开头 // 判断是否以basePath开头
if (!new RegExp(`^(${basePath}|/)`).test(item.path)) { if (!new RegExp(`^(${basePath}|/)`).test(item.path)) {
// 非法开头则对基于basePath进行拼接 // 非法开头则对基于basePath进行拼接
...@@ -97,8 +97,10 @@ export default { ...@@ -97,8 +97,10 @@ export default {
.el-scrollbar__view { .el-scrollbar__view {
height: 100%; height: 100%;
.el-menu { & > .el-menu {
padding-top: 30px;
height: 100%; height: 100%;
box-sizing: border-box;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment