diff --git a/src/components/Breadcrum.tsx b/src/components/Breadcrum.tsx index b002ba9..db6aaf6 100644 --- a/src/components/Breadcrum.tsx +++ b/src/components/Breadcrum.tsx @@ -49,7 +49,7 @@ const Breadcrum: React.FC = ({path,onDirClick}) => { className={`${last?"text-blue-500":""}`} onClick={()=>{ 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}