体验: 目录对比改为忽略仅本地存在的项(如 node_modules),勾选后跳过本地全量扫描提速

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
fenghp
2026-06-11 15:53:40 +08:00
co-authored by Cursor
parent b247a18155
commit bba6e89a16
5 changed files with 31 additions and 18 deletions
+7 -1
View File
@@ -225,8 +225,14 @@ export function getFileContent(params: { serverPath?: string; localPath?: string
/**
* 对已映射目录执行目录对比。
* includeLocalOnly=false 时跳过本地全量扫描,仅本地存在的项(如 node_modules)不计入差异。
*/
export function compareFolder(body: { serverPath: string; localPath?: string; recursive?: boolean }) {
export function compareFolder(body: {
serverPath: string
localPath?: string
recursive?: boolean
includeLocalOnly?: boolean
}) {
return apiClient.post<{ diffs: FolderDiffItem[] }>("/api/compare/folder", { body })
}