|
@@ -231,7 +231,7 @@ const state = reactive({
|
|
|
/** 显示光标 */
|
|
|
displayCursor: true,
|
|
|
/** 频率 */
|
|
|
- frequency: 440,
|
|
|
+ frequency: 0,
|
|
|
/** 评测难度 */
|
|
|
evaluationDifficulty: "ADVANCED" as IDifficulty,
|
|
|
/** 保存到相册 */
|
|
@@ -790,7 +790,7 @@ const setState = (data: any, index: number) => {
|
|
|
state.subjectCodeId = pitchSubject ? pitchSubject.id : 0
|
|
|
state.categoriesId = data.musicCategoryId;
|
|
|
state.categoriesName = data.musicTagNames;
|
|
|
- state.enableEvaluation = data.isEvaluated ? true : false;
|
|
|
+ // state.enableEvaluation = data.isEvaluated ? true : false;
|
|
|
state.examSongId = data.bizId + "";
|
|
|
state.examSongName = data.name;
|
|
|
state.coverImg = data.musicCover ?? "";
|
|
@@ -817,6 +817,8 @@ const setState = (data: any, index: number) => {
|
|
|
state.originSpeed = state.speed = data.playSpeed || 100;
|
|
|
const track = data.code || data.track;
|
|
|
state.track = track ? track.replace(/ /g, "").toLocaleLowerCase() : "";
|
|
|
+ // 能否评测,根据当前声轨有无伴奏判断
|
|
|
+ state.enableEvaluation = state.accompany ? true : false
|
|
|
state.enableNotation = data.isConvertibleScore === null ? true : data.isConvertibleScore;
|
|
|
state.isConcert = data.musicSheetType === "CONCERT" ? true : false;
|
|
|
// multiTracksSelection 返回为空,默认代表全部分轨
|
|
@@ -870,7 +872,9 @@ const setState = (data: any, index: number) => {
|
|
|
state.baseFrequency = Number(state.baseFrequency)
|
|
|
// 用户上次的频率和基准频率误差超过10,则重置
|
|
|
if (Math.abs(state.setting.frequency - state.baseFrequency) > 10) {
|
|
|
- state.setting.frequency = state.baseFrequency >= 0 ? state.baseFrequency : state.setting.frequency
|
|
|
+ state.setting.frequency = state.baseFrequency >= 0 ? state.baseFrequency : 440
|
|
|
+ } else {
|
|
|
+ state.setting.frequency = state.setting.frequency || state.baseFrequency
|
|
|
}
|
|
|
};
|
|
|
|