update 优化代码

This commit is contained in:
疯狂的狮子Li 2025-04-22 13:32:15 +08:00
parent 660d5b3d4f
commit e5de3f4e9d
4 changed files with 4 additions and 5 deletions

View File

@ -26,7 +26,7 @@
z-index: 1001;
overflow: hidden;
-webkit-box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
// reset element-ui css
.horizontal-collapse-transition {

View File

@ -51,7 +51,7 @@ const topMenus = computed(() => {
routers.value.map((menu) => {
if (menu.hidden !== true) {
//
if (menu.path === '/') {
if (menu.path === '/' && menu.children) {
topMenus.push(menu.children ? menu.children[0] : menu);
} else {
topMenus.push(menu);

View File

@ -43,7 +43,7 @@ onMounted(() => {
addIframe()
})
watchEffect((route) => {
watchEffect(() => {
addIframe()
})

View File

@ -260,10 +260,9 @@ onMounted(() => {
background: #ffffff;
width: 400px;
padding: 25px 25px 5px 25px;
z-index: 1;
.el-input {
height: 40px;
input {
height: 40px;
}