|
@@ -72,8 +72,10 @@ export default defineComponent({
|
|
|
};
|
|
|
const getXML = async () => {
|
|
|
// 当有下载的xml的时候直接使用,否则需要下载
|
|
|
- const xmlStr = downloadXmlStr.value || await fetch(state.xmlUrl).then((response) => response.text());
|
|
|
- downloadXmlStr.value = "" // 清空内存
|
|
|
+ if(!downloadXmlStr.value){
|
|
|
+ downloadXmlStr.value = await fetch(state.xmlUrl).then((response) => response.text())
|
|
|
+ }
|
|
|
+ const xmlStr = downloadXmlStr.value;
|
|
|
const xml = formatXML(xmlStr);
|
|
|
musicData.score = state.isCombineRender ? xml : onlyVisible(xml, state.partIndex);
|
|
|
if (state.gradualTimes) {
|