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