|
@@ -74,12 +74,14 @@ export default defineComponent({
|
|
|
downloadXmlStr.value = await fetch(state.xmlUrl).then((response) => response.text())
|
|
|
}
|
|
|
const xmlStr = downloadXmlStr.value;
|
|
|
+ console.time('解析xml')
|
|
|
const parseXmlInfo = getCustomInfo(xmlStr);
|
|
|
const xml = formatXML(parseXmlInfo.parsedXML);
|
|
|
musicData.score = state.isCombineRender ? xml : onlyVisible(xml, state.partIndex);
|
|
|
if (state.gradualTimes) {
|
|
|
state.gradual = getGradualLengthByXml(xml);
|
|
|
}
|
|
|
+ console.timeEnd('解析xml')
|
|
|
};
|
|
|
|
|
|
const init = async () => {
|