Pārlūkot izejas kodu

左侧tab栏图标

shaogen1995 3 mēneši atpakaļ
vecāks
revīzija
f77c7db116
3 mainītis faili ar 19 papildinājumiem un 6 dzēšanām
  1. 11 2
      src/pages/Layout/index.module.scss
  2. 6 2
      src/pages/Layout/index.tsx
  3. 2 2
      src/utils/http.ts

+ 11 - 2
src/pages/Layout/index.module.scss

@@ -28,13 +28,22 @@
         }
         .layoutLRowBox {
           .layoutLRowBoxTxt {
-            opacity: 0.8;
+            // opacity: 0.8;
             font-size: 18px;
             font-weight: 700;
             height: 50px;
             line-height: 50px;
-            padding-left: 40px;
+            padding-left: 35px;
             color: #fff;
+            display: flex;
+            align-items: center;
+            & > img {
+              width: 30px;
+              height: 30px;
+              object-fit: cover;
+              display: inline-block;
+              margin-right: 10px;
+            }
           }
 
           .layoutLRowBoxRow {

+ 6 - 2
src/pages/Layout/index.tsx

@@ -25,6 +25,7 @@ import store, { RootState } from '@/store'
 import { baseURL } from '@/utils/http'
 import baseTouXiangImg from '@/assets/img/user.png'
 import { Z5_APIgetInfo } from '@/store/action/Z5role'
+import { A2imgBaseUrl } from '../A_workbench/A2business/data'
 
 function Layout() {
   // 获取角色下载权限
@@ -273,8 +274,11 @@ function Layout() {
               key={v.id}
               hidden={!v.son.length || (v.son.length === 1 && v.son[0].name === '藏品详情')}
             >
-              {/* 这个项目没有一级目录 */}
-              <div className='layoutLRowBoxTxt'>{v.name}</div>
+              {/* 一级目录 */}
+              <div className='layoutLRowBoxTxt'>
+                <img src={A2imgBaseUrl + v.name + '.png'} alt='' />
+                {v.name}
+              </div>
               {v.son.map(v2 => (
                 <div
                   key={v2.id}

+ 2 - 2
src/utils/http.ts

@@ -7,8 +7,8 @@ import { domShowFu } from './domShow'
 
 export const envFlag = process.env.NODE_ENV === 'development'
 
-const baseUrlTemp = 'https://sit-yiwubwg.4dage.com' // 测试环境
-// const baseUrlTemp = 'http://192.168.20.61:8096' // 线下环境
+// const baseUrlTemp = 'https://sit-yiwubwg.4dage.com' // 测试环境
+const baseUrlTemp = 'http://192.168.20.61:8096' // 线下环境
 
 const baseFlag = baseUrlTemp.includes('https://')