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