|
@@ -367,7 +367,7 @@ export const onlyVisible = (xml: string, partIndex: number, resourceType?: strin
|
|
|
const detailId = state.examSongId + "";
|
|
|
//console.time('解析xml 耗时4')
|
|
|
// const xmlParse = new DOMParser().parseFromString(xml, "text/xml");
|
|
|
- const xmlParse = xmlDocRef.value ? xmlDocRef.value : new DOMParser().parseFromString(xml, "text/xml");
|
|
|
+ const xmlParse = xmlDocRef.value && !resourceType ? xmlDocRef.value : new DOMParser().parseFromString(xml, "text/xml");
|
|
|
//console.timeEnd('解析xml 耗时4')
|
|
|
const partList = xmlParse.getElementsByTagName("part-list")?.[0]?.getElementsByTagName("score-part") || [];
|
|
|
const partListNames = Array.from(partList).map((item) => item.getElementsByTagName("part-name")?.[0]?.textContent?.trim() || "");
|
|
@@ -531,7 +531,6 @@ export const onlyVisible = (xml: string, partIndex: number, resourceType?: strin
|
|
|
});
|
|
|
}
|
|
|
// console.log(xmlParse)
|
|
|
-
|
|
|
return new XMLSerializer().serializeToString(appoggianceFormate(xmlParse));
|
|
|
};
|
|
|
|