fixed breadcrum onDirClick
This commit is contained in:
parent
91e75a2c72
commit
6b8c922d5b
@ -49,7 +49,7 @@ const Breadcrum: React.FC<Props> = ({path,onDirClick}) => {
|
|||||||
className={`${last?"text-blue-500":""}`}
|
className={`${last?"text-blue-500":""}`}
|
||||||
onClick={()=>{
|
onClick={()=>{
|
||||||
if (!last){
|
if (!last){
|
||||||
onDirClick?.(new ObjID(path.bucket,"/"+arr.slice(0,i-1).join("/")))
|
onDirClick?.(new ObjID(path.bucket,arr.slice(0,i+1).join("/")))
|
||||||
}
|
}
|
||||||
}}>{e}</a>
|
}}>{e}</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user