diff --git a/packages/canyon-collect/src/apps/collect/services/coverage-client.service.ts b/packages/canyon-collect/src/apps/collect/services/coverage-client.service.ts index a913f3c9..51151025 100755 --- a/packages/canyon-collect/src/apps/collect/services/coverage-client.service.ts +++ b/packages/canyon-collect/src/apps/collect/services/coverage-client.service.ts @@ -66,11 +66,14 @@ export class CoverageClientService { const obj = {}; for (const key in coverageDbMap) { - obj[key] = { - ...coverageDbMap[key], - ...mergeCoveHit[key], - path: key, - }; + // TODO + if (mergeCoveHit[key]) { + obj[key] = { + ...coverageDbMap[key], + ...mergeCoveHit[key], + path: key, + }; + } } function addInstrumentCwd(cov) { const o = {}; diff --git a/packages/canyon-collect/src/apps/collect/services/coverage-map-client.service.ts b/packages/canyon-collect/src/apps/collect/services/coverage-map-client.service.ts index e1d2bcf6..883d2a91 100755 --- a/packages/canyon-collect/src/apps/collect/services/coverage-map-client.service.ts +++ b/packages/canyon-collect/src/apps/collect/services/coverage-map-client.service.ts @@ -23,6 +23,8 @@ export class CoverageMapClientService { }, }); + // TODO 这里要改,需要在存在的时候更新,并且要把initMap更新一下 + if (exist) { return { id: exist.id,