Browse Source

优化代码

RuoYi 1 year ago
parent
commit
e29284e687

+ 1 - 1
ruoyi-ui/src/assets/styles/sidebar.scss

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

+ 1 - 0
ruoyi-ui/src/components/HeaderSearch/index.vue

@@ -15,6 +15,7 @@
15
         @input="querySearch"
15
         @input="querySearch"
16
         prefix-icon="Search"
16
         prefix-icon="Search"
17
         placeholder="菜单搜索,支持标题、URL模糊查询"
17
         placeholder="菜单搜索,支持标题、URL模糊查询"
18
+        clearable
18
       >
19
       >
19
       </el-input>
20
       </el-input>
20
       <el-scrollbar wrap-class="right-scrollbar-wrapper">
21
       <el-scrollbar wrap-class="right-scrollbar-wrapper">

+ 1 - 1
ruoyi-ui/src/components/TopNav/index.vue

@@ -57,7 +57,7 @@ export default {
57
       this.routers.map((menu) => {
57
       this.routers.map((menu) => {
58
         if (menu.hidden !== true) {
58
         if (menu.hidden !== true) {
59
           // 兼容顶部栏一级菜单内部跳转
59
           // 兼容顶部栏一级菜单内部跳转
60
-          if (menu.path === "/") {
60
+          if (menu.path === '/' && menu.children) {
61
             topMenus.push(menu.children[0]);
61
             topMenus.push(menu.children[0]);
62
           } else {
62
           } else {
63
             topMenus.push(menu);
63
             topMenus.push(menu);

+ 1 - 0
ruoyi-ui/src/views/login.vue

@@ -176,6 +176,7 @@ export default {
176
   background: #ffffff;
176
   background: #ffffff;
177
   width: 400px;
177
   width: 400px;
178
   padding: 25px 25px 5px 25px;
178
   padding: 25px 25px 5px 25px;
179
+  z-index: 1;
179
   .el-input {
180
   .el-input {
180
     height: 38px;
181
     height: 38px;
181
     input {
182
     input {