|
@@ -256,13 +256,15 @@ const sendOffsetTime = (offsetTime: number) => {
|
|
|
|
|
|
const cancelTheEvaluation = () => {
|
|
|
const search = useOriginSearch()
|
|
|
- postMessage({ api: 'endEvaluating', content: { musicScoreId: search.id } })
|
|
|
- playStatus.value = 'stop'
|
|
|
- RuntimeUtils.pause()
|
|
|
- RuntimeUtils.resetPlayStatus()
|
|
|
- RuntimeUtils.clearIntervalTimeline()
|
|
|
- RuntimeUtils.setCurrentTime(0)
|
|
|
- Toast.clear()
|
|
|
+ setTimeout(() => {
|
|
|
+ postMessage({ api: 'endEvaluating', content: { musicScoreId: search.id } })
|
|
|
+ playStatus.value = 'stop'
|
|
|
+ RuntimeUtils.pause()
|
|
|
+ RuntimeUtils.resetPlayStatus()
|
|
|
+ RuntimeUtils.clearIntervalTimeline()
|
|
|
+ RuntimeUtils.setCurrentTime(0)
|
|
|
+ Toast.clear()
|
|
|
+ }, 200);
|
|
|
}
|
|
|
|
|
|
const stopPlay = () => {
|
|
@@ -373,21 +375,23 @@ const playerStop = () => {
|
|
|
message: '评分中...',
|
|
|
type: 'loading',
|
|
|
})
|
|
|
- postMessage(
|
|
|
- {
|
|
|
- api: 'endEvaluating',
|
|
|
- content: {
|
|
|
- musicScoreId: useOriginSearch().id,
|
|
|
+ setTimeout(() => {
|
|
|
+ postMessage(
|
|
|
+ {
|
|
|
+ api: 'endEvaluating',
|
|
|
+ content: {
|
|
|
+ musicScoreId: useOriginSearch().id,
|
|
|
+ },
|
|
|
},
|
|
|
- },
|
|
|
- (evt) => {
|
|
|
- console.log('调用endEvaluating结束', evt)
|
|
|
- endloading.value = false
|
|
|
- evaluating.value = false
|
|
|
- // RuntimeUtils.setCaptureMode()
|
|
|
- }
|
|
|
- )
|
|
|
- RuntimeUtils.endCapture()
|
|
|
+ (evt) => {
|
|
|
+ console.log('调用endEvaluating结束', evt)
|
|
|
+ endloading.value = false
|
|
|
+ evaluating.value = false
|
|
|
+ // RuntimeUtils.setCaptureMode()
|
|
|
+ }
|
|
|
+ )
|
|
|
+ RuntimeUtils.endCapture()
|
|
|
+ },200)
|
|
|
}
|
|
|
export const evaluatPlayerStop = playerStop
|
|
|
|