Skip to content

Commit 6edad14

Browse files
committed
🐛 修复徽章显示0的问题
1 parent 3acd3f3 commit 6edad14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/service/service_worker/popup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ export class PopupService {
244244
for (const d of data) {
245245
runCount += d.runNum;
246246
}
247-
scriptCountMap.set(tabId, `${data.length}`);
248-
runCountMap.set(tabId, `${runCount}`);
247+
data.length && scriptCountMap.set(tabId, `${data.length}`);
248+
runCount && runCountMap.set(tabId, `${runCount}`);
249249
return data;
250250
});
251251
}

0 commit comments

Comments
 (0)