Skip to content

Commit

Permalink
fix(web): fixed the path issue when clicking pathlink
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxiuxiu1115 authored Apr 1, 2023
1 parent 84a1371 commit 3408aca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/pages/app/storages/mods/PathLink/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ function PathLink() {
const str = prefix?.split("/").filter((s) => s !== "");

const paths = str?.map((s, i) => {
str[i] = str[i - 1] ? `${str[i - 1]}/${s}/` : `/${s}/`;
return {
name: s,
path: str[i - 1] ? `${str[i - 1]}/${s}/` : `/${s}/`,
path: str[i],
};
});

Expand Down

0 comments on commit 3408aca

Please sign in to comment.