Repository navigation
fix: 修复文件夹归并后任务列表等级数量显示为零 - #8
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题与修复
漏洞上报归并成文件夹后,文件夹尚未评级时,任务列表会优先读取为空的独立漏洞评级,导致严重/高/中/低显示为
0/0/0/0。改为优先显示原始上报的等级数量,并保留归并后的独立漏洞数、上报数和待评估数。悬浮提示标明等级统计来自原始上报;缺少原始统计时仍回退到独立漏洞统计。
例如,两条高危上报归并成一个待评估文件夹后,显示
0/2/0/0 · 1 漏洞 / 2 上报 · 待评估 1。验证
tsc --noEmit --incremental false通过。git diff --check通过。noLabelWithoutControl错误,与本次修改无关。尚未连接真实后端验证。