update 优化代码
This commit is contained in:
parent
660d5b3d4f
commit
e5de3f4e9d
@ -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 {
|
||||
|
@ -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);
|
||||
|
@ -43,7 +43,7 @@ onMounted(() => {
|
||||
addIframe()
|
||||
})
|
||||
|
||||
watchEffect((route) => {
|
||||
watchEffect(() => {
|
||||
addIframe()
|
||||
})
|
||||
|
||||
|
@ -260,10 +260,9 @@ onMounted(() => {
|
||||
background: #ffffff;
|
||||
width: 400px;
|
||||
padding: 25px 25px 5px 25px;
|
||||
|
||||
z-index: 1;
|
||||
.el-input {
|
||||
height: 40px;
|
||||
|
||||
input {
|
||||
height: 40px;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user