From bbcaf8d7c65566a1af17aceb26eebac0fc7cd158 Mon Sep 17 00:00:00 2001 From: wshyao Date: Wed, 9 Jul 2025 01:49:49 +0000 Subject: [PATCH] fix relative path wrong in pge edition --- frontend/src/components/shared/FileList.vue | 2 +- frontend/src/components/shared/NewFile.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/shared/FileList.vue b/frontend/src/components/shared/FileList.vue index 7c32e0ab0..e1b186f19 100644 --- a/frontend/src/components/shared/FileList.vue +++ b/frontend/src/components/shared/FileList.vue @@ -212,7 +212,7 @@ const goToNewFile = () => { setRepoTab({ actionName: 'new_file', - lastPath: '' + lastPath: currentPath.value.length > 0 ? '/' + currentPath.value : '' }) } diff --git a/frontend/src/components/shared/NewFile.vue b/frontend/src/components/shared/NewFile.vue index 1290ac8f4..db92f52d0 100644 --- a/frontend/src/components/shared/NewFile.vue +++ b/frontend/src/components/shared/NewFile.vue @@ -1,7 +1,7 @@