From 2d8dafdddd85653371e463ee43f960f2366d9313 Mon Sep 17 00:00:00 2001
From: 李旭东 <woaiguo66@sina.com>
Date: 星期五, 27 十月 2023 15:51:16 +0800
Subject: [PATCH] Merge branch 'master' of http://111.30.93.211:10101/r/supipe
---
web/src/views/LayoutIndex/components/LayoutAside.vue | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/web/src/views/LayoutIndex/components/LayoutAside.vue b/web/src/views/LayoutIndex/components/LayoutAside.vue
index a62ae11..8d29a32 100644
--- a/web/src/views/LayoutIndex/components/LayoutAside.vue
+++ b/web/src/views/LayoutIndex/components/LayoutAside.vue
@@ -21,7 +21,7 @@
<template v-for="three in item.children">
<template v-if="three.children && three.children.length > 1">
- <el-submenu :key="three.name" :index="three.path">
+ <el-submenu :key="three.name" :index="three.path" class="titles_two">
<template slot="title">
<span>{{three.meta.title}}</span>
</template>
@@ -31,9 +31,15 @@
</el-submenu>
</template>
<template v-else-if="three.children && three.children.length === 1">
- <el-menu-item :index="three.children[0].path" :key="three.children[0].name">
+ <el-submenu :key="three.name" :index="three.path">
+ <template slot="title">
+ <span>{{three.meta.title}}</span>
+ </template>
+ <el-menu-item :index="three.children[0].path" :key="three.children[0].name">{{three.children[0].meta.title}}</el-menu-item>
+ </el-submenu>
+ <!-- <el-menu-item :index="three.children[0].path" :key="three.children[0].name">
<span slot="title">{{three.children[0].meta.title}}</span>
- </el-menu-item>
+ </el-menu-item> -->
</template>
<template v-else>
<el-menu-item :index="three.path" :key="three.name">
@@ -111,6 +117,10 @@
}
}
+.titles_two{
+ padding-left: 15px;
+}
+
/deep/ .el-menu {
border-right: 0;
}
@@ -121,6 +131,7 @@
}
/deep/ .el-menu-item.is-active {
+ padding-left: 45px!important;
position: relative;
margin-left: 10px;
color: #3DC8FF;
--
Gitblit v1.9.3