fix: 修复对照检查变量名错误 selectedRightIdx -> selectedRightIdxs
This commit is contained in:
@@ -410,11 +410,13 @@ ${content}
|
||||
const parsed = JSON.parse(jsonMatch[0])
|
||||
lastCheckResult.value = parsed
|
||||
|
||||
// 保存到对应段落的检查结果
|
||||
checkResults.value[selectedRightIdx.value] = {
|
||||
status: parsed.overall,
|
||||
message: parsed.summary
|
||||
}
|
||||
// 保存到所有选中段落的检查结果
|
||||
selectedRightIdxs.value.forEach(idx => {
|
||||
checkResults.value[idx] = {
|
||||
status: parsed.overall,
|
||||
message: parsed.summary
|
||||
}
|
||||
})
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('对照检查失败:', error)
|
||||
|
||||
Reference in New Issue
Block a user