Browse Source

更换主题色

shaogen1995 7 tháng trước cách đây
mục cha
commit
7c2be6950e

BIN
public/favicon.ico


BIN
src/assets/img/bg.jpg


BIN
src/assets/img/layAc.png


BIN
src/assets/img/layLogo.png


BIN
src/assets/img/logo.png


+ 1 - 1
src/assets/styles/base.css

@@ -35,7 +35,7 @@ textarea {
 }
 /* 主题色 */
 :root {
-  --themeColor: #b02b23;
+  --themeColor: #1e5099;
   --themeColor2: #f7c481;
 }
 /* 找不到页面 */

+ 1 - 1
src/assets/styles/base.less

@@ -45,7 +45,7 @@ textarea {
 
 /* 主题色 */
 :root {
-  --themeColor: #b02b23;
+  --themeColor: #1e5099;
   --themeColor2: #f7c481;
 }
 

+ 1 - 1
src/index.tsx

@@ -22,7 +22,7 @@ root.render(
     locale={locale}
     theme={{
       token: {
-        colorPrimary: '#b02b23'
+        colorPrimary: '#1e5099'
       }
     }}
   >

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

@@ -41,17 +41,15 @@
             line-height: 40px;
 
             &:hover {
-              background-image: url('../../assets/img/layAc.png');
-              background-size: 100% 100%;
-              color: var(--themeColor);
+              // font-weight: 700;
+              color: var(--themeColor2);
             }
           }
 
           .active {
             // pointer-events: none;
-            background-image: url('../../assets/img/layAc.png');
-            background-size: 100% 100%;
-            color: var(--themeColor);
+            font-weight: 700;
+            color: var(--themeColor2);
           }
         }
       }

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

@@ -175,7 +175,7 @@ function Layout() {
       {/* 左边 */}
       <div className='layoutLeft'>
         <div className='layoutLeftTop'>
-          <img src={require('@/assets/img/layLogo.png')} alt='' />
+          <img src={require('@/assets/img/logo.png')} alt='' />
         </div>
         {/* 左边主体 */}
         <div className='layoutLeftMain'>

+ 4 - 1
src/pages/Login/index.module.scss

@@ -15,9 +15,12 @@
     .logTit {
       position: absolute;
       left: 50px;
-      top: 200px;
+      top: 170px;
       color: #fff;
       font-size: 30px;
+      h1 {
+        font-weight: 400;
+      }
     }
 
     .mainRight {

+ 1 - 1
src/utils/http.ts

@@ -10,7 +10,7 @@ import { Base64 } from 'js-base64'
 export const envFlag = process.env.NODE_ENV === 'development'
 
 // 请求基地址
-// export const baseURL = 'http://192.168.20.55:8500'
+// export const baseURL = envFlag ? 'http://192.168.20.55:8500' : ''
 export const baseURL = envFlag ? 'https://sit-tongbulab.4dage.com' : ''
 
 // 处理  类型“AxiosResponse<any, any>”上不存在属性“code”