|
@@ -412,9 +412,11 @@ export default {
|
|
|
highLightErrorText(exception) {
|
|
|
if (this.curException) {
|
|
|
this.curException.indexs.forEach((ind) => {
|
|
|
- const sectionDom = document.getElementById(`section-${ind}`);
|
|
|
- if (!sectionDom) return;
|
|
|
- sectionDom.style = null;
|
|
|
+ const sectionDoms = document.querySelectorAll(`#section-${ind}`);
|
|
|
+ if (!sectionDoms.length) return;
|
|
|
+ sectionDoms.forEach((sectionDom) => {
|
|
|
+ sectionDom.style = null;
|
|
|
+ });
|
|
|
});
|
|
|
}
|
|
|
this.clearSetTs();
|
|
@@ -444,9 +446,11 @@ export default {
|
|
|
|
|
|
this.addSetTime(() => {
|
|
|
this.curException.indexs.forEach((ind) => {
|
|
|
- const sectionDom = document.getElementById(`section-${ind}`);
|
|
|
- if (!sectionDom) return;
|
|
|
- sectionDom.style = null;
|
|
|
+ const sectionDoms = document.querySelectorAll(`#section-${ind}`);
|
|
|
+ if (!sectionDoms.length) return;
|
|
|
+ sectionDoms.forEach((sectionDom) => {
|
|
|
+ sectionDom.style = null;
|
|
|
+ });
|
|
|
});
|
|
|
this.curException = null;
|
|
|
}, 5000);
|