Ver código fonte

style: 首页

chenlei 1 ano atrás
pai
commit
246c0f1ef7

+ 4 - 4
src/pages/Layout/index.scss

@@ -31,14 +31,14 @@
   .ant-menu-item {
     &-selected {
       color: #ffffff !important;
-      background: var(--second-color) !important;
+      background: var(--primary-color) !important;
 
       .ant-menu-title-content {
         color: inherit !important;
       }
     }
     &-active .ant-menu-title-content {
-      color: var(--second-color);
+      color: var(--primary-color);
     }
   }
   .ant-menu-submenu {
@@ -53,12 +53,12 @@
     }
     &-selected {
       > .ant-menu-submenu-title {
-        color: var(--second-color) !important;
+        color: var(--primary-color) !important;
       }
 
       .ant-menu-item-selected {
         color: #ffffff !important;
-        background: var(--second-color) !important;
+        background: var(--primary-color) !important;
       }
     }
     &-title {

+ 1 - 1
src/pages/Layout/index.tsx

@@ -46,7 +46,7 @@ export default function CustomLayout() {
             top: 0,
             left: 0,
             bottom: 0,
-            background: "var(--primary-color)",
+            background: "#b6a384",
           }}
         >
           <div className="logo">

+ 0 - 2
src/pages/Login/index.scss

@@ -87,10 +87,8 @@
         font-size: 16px;
         width: 100%;
         height: 50px;
-        color: white;
         border-radius: 5px;
         border: 0;
-        background: var(--primary-color);
       }
     }
   }

+ 1 - 1
src/pages/Login/index.tsx

@@ -80,7 +80,7 @@ export default function Login() {
 
           {/* 登录按钮 */}
           <div className="login-form__btn">
-            <Button htmlType="submit" loading={loading}>
+            <Button type="primary" htmlType="submit" loading={loading}>
               登 录
             </Button>
           </div>