fix(git): include path parameter in listDir dispatch for directory listing

This commit is contained in:
Marvin Zhang
2025-12-03 15:39:03 +08:00
parent 6085ed0db0
commit 034fbf1a84

View File

@@ -71,7 +71,7 @@ watch(gitRootPath, () => {
});
watch(visible, () => {
if (visible.value) {
store.dispatch(`${nsGit}/listDir`, { id: activeId.value });
store.dispatch(`${nsGit}/listDir`, { id: activeId.value, path: '/' });
gitRootPath.value = gitState.activeFileNavItem?.path || FILE_ROOT;
const name = [gitState.form.name, gitRootPath.value]
.filter(f => f !== FILE_ROOT)