|
@@ -121,6 +121,16 @@ export default defineComponent({
|
|
|
mode: 'cors'
|
|
|
});
|
|
|
const xmlParse = new DOMParser().parseFromString(res, 'text/xml');
|
|
|
+ /**
|
|
|
+ * 妙极客的曲子,systems中含有part标签,需过滤掉systems标签,xmlParse.querySelectorAll('systems')
|
|
|
+ */
|
|
|
+ const systems = Array.from(xmlParse?.querySelectorAll('systems')) || [];
|
|
|
+ systems.forEach((system: any) => {
|
|
|
+ const childs = Array.from(system?.querySelectorAll('system')) || [];
|
|
|
+ childs.forEach((child: any) => {
|
|
|
+ system?.removeChild(child);
|
|
|
+ })
|
|
|
+ });
|
|
|
const parts = xmlParse.getElementsByTagName('part');
|
|
|
firstMeasures = parts[0]?.getElementsByTagName('measure');
|
|
|
xmlStatus = 'success';
|