|
@@ -4,7 +4,7 @@ import request from '/src/helpers/request'
|
|
|
import originRequest from 'umi-request'
|
|
|
import store from 'store'
|
|
|
import runtime, * as RuntimeUtils from '/src/pages/detail/runtime'
|
|
|
-import detailState, { GradualTimes } from '/src/pages/detail/state'
|
|
|
+import detailState, { GradualTimes, isRhythmicExercises } from '/src/pages/detail/state'
|
|
|
import SettingState from '/src/pages/detail/setting-state'
|
|
|
import { listenerMessage, postMessage } from '/src/helpers/native-message'
|
|
|
import audiosInstance from '/src/helpers/multiple-audio'
|
|
@@ -76,7 +76,6 @@ export const useMp3s = async (detail: MusicSheelDetail) => {
|
|
|
music: musicSong ? musicSong + '?t=music' : '',
|
|
|
}
|
|
|
detailState.isAppPlay = detail.audioType === 'MIDI'
|
|
|
- detailState.isPercussion = musicInfo.musicSubject == '1'
|
|
|
let defaultExtConfigJson = {
|
|
|
skipTick: false,
|
|
|
repeatedBeats: false,
|
|
@@ -92,6 +91,7 @@ export const useMp3s = async (detail: MusicSheelDetail) => {
|
|
|
...defaultExtConfigJson,
|
|
|
},
|
|
|
}
|
|
|
+ detailState.isPercussion = musicInfo.musicSubject == '1' || isRhythmicExercises();
|
|
|
try {
|
|
|
extConfigJson = JSON.parse(detail?.extConfigJson || '')
|
|
|
} catch (error) {}
|