Browse Source

feat: 是否打击乐和节奏练习

TIANYONG 1 year ago
parent
commit
d823b9a15d
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/state.ts

+ 6 - 6
src/state.ts

@@ -719,12 +719,12 @@ const setState = (data: any, index: number) => {
   state.isOpenPrepare = true;
   // console.log("🚀 ~ state.subjectId:", state.subjectId, state.track as any , state.subjectId)
   // 是否打击乐
-  // state.isPercussion =
-  // 	state.subjectId == 23 ||
-  // 	state.subjectId == 113 ||
-  // 	state.subjectId == 121 ||
-  // 	isRhythmicExercises();
-  state.isPercussion = isRhythmicExercises();
+  /**
+   * 是否打击乐&节奏练习
+   * evaluationStandard:("评测标准 节奏 AMPLITUDE 音准 FREQUENCY 分贝 DECIBELS")
+   */
+  // state.isPercussion = isRhythmicExercises();
+  state.isPercussion = data.evaluationStandard === "AMPLITUDE";
   // 设置是否特殊曲谱, 是特殊曲谱取反(不理解之前的思考逻辑), 使用后台设置的速度
   state.isSpecialBookCategory = !classids.includes(data.musicCategoryId);