瀏覽代碼

fix: update

xiaoxian521 3 年之前
父節點
當前提交
c18dbea3cd
共有 2 個文件被更改,包括 5 次插入6 次删除
  1. 1 2
      src/store/modules/app.ts
  2. 4 4
      src/style/sidebar.scss

+ 1 - 2
src/store/modules/app.ts

@@ -24,8 +24,7 @@ export const useAppStore = defineStore({
     },
     // 这里的layout用于监听容器拖拉后恢复对应的导航模式
     layout:
-      storageLocal.getItem("responsive-layout")?.layout?.layout ??
-      getConfig().Layout,
+      storageLocal.getItem("responsive-layout")?.layout ?? getConfig().Layout,
     device: deviceDetection() ? "mobile" : "desktop"
   }),
   getters: {

+ 4 - 4
src/style/sidebar.scss

@@ -318,9 +318,6 @@
       background-color: $subMenuBg !important;
 
       .el-menu-item {
-        color: $menuText;
-        background-color: $subMenuBg;
-
         span {
           font-size: 12px;
           margin-left: 10px;
@@ -368,6 +365,9 @@
 
     .el-menu-item,
     .el-sub-menu__title {
+      color: $menuText;
+      background-color: $subMenuBg;
+
       &:hover {
         color: $menuTitleHover !important;
       }
@@ -580,7 +580,7 @@ body[layout="vertical"] {
     }
 
     .main-container {
-      margin-left: 54px !important;
+      margin-left: 0;
     }
 
     .submenu-title-noDropdown {