|
@@ -1620,7 +1620,7 @@ function initMusicSource(data: any, tracks: string[], partIndex: number, workRec
|
|
|
}
|
|
|
// 当没有任何曲目的时候报错
|
|
|
if (!musicObj?.audioFileUrl && !accompanyObj?.audioFileUrl && !fanSongObj?.audioFileUrl && !banSongObj?.audioFileUrl && !fanSongObj?.solmizationFileUrl && !fanSongObj?.femaleSolmizationFileUrl) {
|
|
|
- state.noMusicSource = true // 没有音源文件
|
|
|
+ state.noMusicSource = !data.midiFileUrl ? true : false // 没有音源文件
|
|
|
// 独奏的时候
|
|
|
if(musicSheetType === "SINGLE"){
|
|
|
// 并且是midi没有midi文件的时候
|
|
@@ -1863,7 +1863,7 @@ const setState = (data: any, index: number) => {
|
|
|
}
|
|
|
// 非APP打开的页面,禁止评测
|
|
|
if (!storeData.isApp) {
|
|
|
- state.enableEvaluation = false;
|
|
|
+ // state.enableEvaluation = false;
|
|
|
}
|
|
|
/**
|
|
|
* 默认渲染什么谱面类型 & 能否转谱逻辑
|
|
@@ -2170,7 +2170,7 @@ watch(
|
|
|
measureNum = nextMeasureNum
|
|
|
}
|
|
|
if (measureNum >= 0 && (measureNum === state.activeMeasureIndex || (measureNum < state.activeMeasureIndex && nextMeasureNum > state.activeMeasureIndex))) {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", state.isSimplePage ? "rgba(45, 199, 170, 0.3)" : "rgba(1, 193, 181, 0.2)")
|
|
|
+ item.querySelector('.vf-custom-bg')?.setAttribute("fill", state.isSimplePage ? "rgba(45, 199, 170, 0.3)" : "rgba(45, 199, 170, 0.2)")
|
|
|
// 预备小节
|
|
|
if(state.sectionFirst && measureNum === state.sectionFirst.MeasureNumberXML && state.section.length === 2){
|
|
|
item?.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(255, 193, 48, 0.15)")
|
|
@@ -2190,7 +2190,7 @@ watch(
|
|
|
rightMeasureNumberXML = state.section[0].MeasureNumberXML
|
|
|
}
|
|
|
if(measureNum >= leftMeasureNumberXML && measureNum <= rightMeasureNumberXML){
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(1, 193, 181, 0.15)")
|
|
|
+ item.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(45, 199, 170, 0.15)")
|
|
|
}
|
|
|
// 预备小节
|
|
|
if(state.sectionFirst && measureNum === state.sectionFirst.MeasureNumberXML){
|
|
@@ -2239,7 +2239,7 @@ watch(
|
|
|
item.querySelector('.vf-custom-bg')?.setAttribute("fill", "transparent")
|
|
|
}
|
|
|
if (measureNum >= leftMeasureNumberXML && measureNum <= rightMeasureNumberXML) {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(1, 193, 181, 0.15)")
|
|
|
+ item.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(45, 199, 170, 0.15)")
|
|
|
}
|
|
|
// 预备小节
|
|
|
if(state.sectionFirst && measureNum === state.sectionFirst.MeasureNumberXML){
|
|
@@ -2262,7 +2262,7 @@ watch(
|
|
|
measureNum = nextMeasureNum
|
|
|
}
|
|
|
if (measureNum >= 0 && (measureNum === state.activeMeasureIndex || (measureNum < state.activeMeasureIndex && nextMeasureNum > state.activeMeasureIndex)) ) {
|
|
|
- item.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(1, 193, 181, 0.15)")
|
|
|
+ item.querySelector('.vf-custom-bg')?.setAttribute("fill", "rgba(45, 199, 170, 0.15)")
|
|
|
} else {
|
|
|
item.querySelector('.vf-custom-bg')?.setAttribute("fill", "transparent")
|
|
|
}
|