642f2f19 by lihua

fix: 下载报告附录分页

1 parent 4afc0206
......@@ -228,11 +228,13 @@ const downloadWord = () => {
htmlOverview = htmlContent.substring(0, index + firstBr.length);
htmlContentPart = htmlContent.substring(index + firstBr.length);
}
let secondBr = match[1];
if (secondBr) {
const index = htmlContent.indexOf(secondBr);
if (index !== -1) {
htmlAppendix = htmlContent.substring(index + secondBr.length);
if (match?.length > 2) {
let secondBr = match[1];
if (secondBr) {
const index = htmlContent.indexOf(secondBr);
if (index !== -1) {
htmlAppendix = htmlContent.substring(index + secondBr.length);
}
}
}
}
......
......@@ -2247,11 +2247,13 @@ const downloadWord = () => {
htmlOverview = htmlContent.substring(0, index + firstBr.length);
htmlContentPart = htmlContent.substring(index + firstBr.length);
}
let secondBr = match[1];
if (secondBr) {
const index = htmlContent.indexOf(secondBr);
if (index !== -1) {
htmlAppendix = htmlContent.substring(index + secondBr.length);
if (match?.length > 2) {
let secondBr = match[1];
if (secondBr) {
const index = htmlContent.indexOf(secondBr);
if (index !== -1) {
htmlAppendix = htmlContent.substring(index + secondBr.length);
}
}
}
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!