|
@@ -86,9 +86,10 @@ export const changeMode = async (val: IMode, type?: string | undefined) => {
|
|
|
* 切换midi播放状态
|
|
|
*/
|
|
|
export const cloudToggleState = async (type: "play" | "paused") => {
|
|
|
+ console.log('api','midi状态2')
|
|
|
const cloudGetMediaStatus = await api_cloudGetMediaStatus();
|
|
|
const status = cloudGetMediaStatus?.content.status
|
|
|
- console.log('api','midi状态',status)
|
|
|
+ console.log('api','midi状态3',status)
|
|
|
if (status === 'init') {
|
|
|
return
|
|
|
}
|
|
@@ -104,6 +105,7 @@ export const cloudToggleState = async (type: "play" | "paused") => {
|
|
|
// startCapture()
|
|
|
onPlay()
|
|
|
} else {
|
|
|
+ audioData.progress = 0
|
|
|
await api_cloudSuspend({
|
|
|
songID: state.examSongId,
|
|
|
})
|