Skip to content

Commit 4e661ab

Browse files
committed
fix: we already have the path, dummy
Signed-off-by: Evan Song <theevansong@gmail.com>
1 parent a4a0bf1 commit 4e661ab

File tree

1 file changed

+1
-2
lines changed
  • apps/frontend/src/pages/servers/manage/[id]

1 file changed

+1
-2
lines changed

apps/frontend/src/pages/servers/manage/[id]/files.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,7 @@ const imageExtensions = ["png", "jpg", "jpeg", "gif", "webp"];
486486
487487
const editFile = async (item: { name: string; type: string; path: string }) => {
488488
try {
489-
const path = `${currentPath.value}/${item.name}`.replace("//", "/");
490-
const content = (await props.server.fs?.downloadFile(path, true)) as any;
489+
const content = (await props.server.fs?.downloadFile(item.path, true)) as any;
491490
492491
window.scrollTo(0, 0);
493492

0 commit comments

Comments
 (0)