fixed breadcrum
This commit is contained in:
parent
a24ed03e1f
commit
53969946d2
@ -21,7 +21,9 @@ const Breadcrum: React.FC<Props> = (props) => {
|
||||
{parts.map((e,i,arr)=>(
|
||||
<li key={e} className="breadcrumb-item">
|
||||
<a onClick={()=>{
|
||||
if (i != arr.length - 1){
|
||||
props.onDirClick?.("/"+arr.slice(0,i-1).join("/"))
|
||||
}
|
||||
}}>{e}</a>
|
||||
</li>))}
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user