|
@@ -5,6 +5,7 @@ import request from "/src/utils/request";
|
|
|
import { getSecondRPM } from "/src/utils";
|
|
|
import state from '/src/state'
|
|
|
import { headTopData } from "/src/page-instrument/header-top/index";
|
|
|
+import { followData } from "/src/view/follow-practice/index"
|
|
|
|
|
|
// 练习统计
|
|
|
export default defineComponent({
|
|
@@ -42,6 +43,15 @@ export default defineComponent({
|
|
|
handleStop()
|
|
|
}
|
|
|
})
|
|
|
+ // 监听跟练播放
|
|
|
+ watch(() => state.hasFollowResult, () => {
|
|
|
+ console.log('跟练录音11111',state.hasFollowResult,followData.start)
|
|
|
+ if (followData.practiceStart && state.hasFollowResult){
|
|
|
+ handleStart()
|
|
|
+ } else if (!followData.practiceStart) {
|
|
|
+ handleStop()
|
|
|
+ }
|
|
|
+ })
|
|
|
onMounted(() => {
|
|
|
getTime();
|
|
|
});
|