浏览代码

fix: 菜单栏标段内容异常

lanjianrong 4 年之前
父节点
当前提交
7da8d54a89
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/components/LeftSide/index.tsx

+ 2 - 1
src/components/LeftSide/index.tsx

@@ -23,12 +23,13 @@ const LeftSide:React.FC<iNavSide> = ({ childRoutes, location, showBidsection = f
     basePathname = pathname.substring(0, pathname.indexOf(route.path))
     basePathname = pathname.substring(0, pathname.indexOf(route.path))
   }
   }
 
 
+  
   return (
   return (
     <div className={userStore.showLeftSide ? "panel-sidebar" : "scale-out-hor-left"}>
     <div className={userStore.showLeftSide ? "panel-sidebar" : "scale-out-hor-left"}>
       <div>
       <div>
         <Tooltip title={!showBidsection ? userStore.projectName : tenderStore.bidsction_name} placement="right">
         <Tooltip title={!showBidsection ? userStore.projectName : tenderStore.bidsction_name} placement="right">
           <div className="pi-pd-10 pi-mg-bottom-10 sidebar-title ">
           <div className="pi-pd-10 pi-mg-bottom-10 sidebar-title ">
-            <span className="pi-ellipsis-2">{!showBidsection ? userStore.projectName : tenderStore.bidsction_name}</span>
+            <span className="pi-ellipsis-2">{!showBidsection ? userStore.projectName : (state?.name ?? tenderStore.bidsction_name)}</span>
           </div>
           </div>
         </Tooltip>
         </Tooltip>
         <div className="pi-flex-column pi-justify-start">
         <div className="pi-flex-column pi-justify-start">