|
@@ -71,7 +71,7 @@ export default defineComponent({
|
|
|
state.musicRenderType = musicRenderType;
|
|
|
}
|
|
|
};
|
|
|
- const getXML = async () => {
|
|
|
+ const getXML = async (cbType?: string) => {
|
|
|
// 当有下载的xml的时候直接使用,否则需要下载
|
|
|
if(!downloadXmlStr.value){
|
|
|
downloadXmlStr.value = await fetch(state.xmlUrl).then((response) => response.text())
|
|
@@ -84,8 +84,8 @@ export default defineComponent({
|
|
|
}
|
|
|
} else {
|
|
|
const xmlStr = downloadXmlStr.value;
|
|
|
- const parseXmlInfo = getCustomInfo(xmlStr);
|
|
|
- const xml = formatXML(parseXmlInfo.parsedXML);
|
|
|
+ const parseXmlInfo = getCustomInfo(xmlStr, cbType);
|
|
|
+ const xml = formatXML(parseXmlInfo.parsedXML, '', cbType);
|
|
|
musicData.score = state.isCombineRender ? xml : onlyVisible(xml, state.partIndex);
|
|
|
if (state.gradualTimes) {
|
|
|
state.gradual = getGradualLengthByXml(xml);
|
|
@@ -202,7 +202,7 @@ export default defineComponent({
|
|
|
let horizontalDragScroll:HorizontalDragScroll | null
|
|
|
onMounted(async () => {
|
|
|
//setRenderType();
|
|
|
- await getXML();
|
|
|
+ await getXML('init');
|
|
|
await init();
|
|
|
// pc 端支持 拖动滚动
|
|
|
if(state.platform === "PC" || query.isCbs){
|