RuoYi
2025-04-22 e29284e68790c120a31666f47058b0ed0d5ad7aa
优化代码
4 files modified
6 ■■■■■ changed files
ruoyi-ui/src/assets/styles/sidebar.scss 2 ●●● patch | view | raw | blame | history
ruoyi-ui/src/components/HeaderSearch/index.vue 1 ●●●● patch | view | raw | blame | history
ruoyi-ui/src/components/TopNav/index.vue 2 ●●● patch | view | raw | blame | history
ruoyi-ui/src/views/login.vue 1 ●●●● patch | view | raw | blame | history
ruoyi-ui/src/assets/styles/sidebar.scss
@@ -25,7 +25,7 @@
    z-index: 1001;
    overflow: hidden;
    -webkit-box-shadow: 2px 0 6px rgba(0,21,41,.35);
    box-shadow: 2px 0 6px rgba(0,21,41,.35);
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
    // reset element-ui css
    .horizontal-collapse-transition {
ruoyi-ui/src/components/HeaderSearch/index.vue
@@ -15,6 +15,7 @@
        @input="querySearch"
        prefix-icon="Search"
        placeholder="菜单搜索,支持标题、URL模糊查询"
        clearable
      >
      </el-input>
      <el-scrollbar wrap-class="right-scrollbar-wrapper">
ruoyi-ui/src/components/TopNav/index.vue
@@ -57,7 +57,7 @@
      this.routers.map((menu) => {
        if (menu.hidden !== true) {
          // 兼容顶部栏一级菜单内部跳转
          if (menu.path === "/") {
          if (menu.path === '/' && menu.children) {
            topMenus.push(menu.children[0]);
          } else {
            topMenus.push(menu);
ruoyi-ui/src/views/login.vue
@@ -176,6 +176,7 @@
  background: #ffffff;
  width: 400px;
  padding: 25px 25px 5px 25px;
  z-index: 1;
  .el-input {
    height: 38px;
    input {