From 034fbf1a84bd4b33f77a0846677f1a08633c0c57 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 3 Dec 2025 15:39:03 +0800 Subject: [PATCH] fix(git): include path parameter in listDir dispatch for directory listing --- .../src/components/core/git/CreateGitSpiderDialog.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/crawlab-ui/src/components/core/git/CreateGitSpiderDialog.vue b/frontend/crawlab-ui/src/components/core/git/CreateGitSpiderDialog.vue index 7b93b0fd..532478c9 100644 --- a/frontend/crawlab-ui/src/components/core/git/CreateGitSpiderDialog.vue +++ b/frontend/crawlab-ui/src/components/core/git/CreateGitSpiderDialog.vue @@ -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)