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)