Commit bc8ce1f9 authored by liujiangnan's avatar liujiangnan

fix: 角标错误

parent 8c61146b
......@@ -885,13 +885,13 @@ function annotation(text, detail){
const errorPosInfos = feedBack.errorPosInfos;
for(let j=errorPosInfos.length-1; j>=0; j--){
const errPos = errorPosInfos[i];
const errPos = errorPosInfos[j];
const startPos = errPos.startPos;
rawSent = insertString(rawSent, `<span class="err-grammar-number">${i+j+1}</span>`, startPos);
}
annotationHtml += rawSent;
for(let j=0; j<errorPosInfos.length; j++){
const errPos = errorPosInfos[i];
const errPos = errorPosInfos[j];
const reason = errPos.reason;
evaluateHtml += `<br><span class="err-grammar-index">${i+j+1}</span>&nbsp;${reason}`;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment