|
@@ -183,16 +183,16 @@ export default defineComponent({
|
|
|
state.isLoading = false;
|
|
|
isEmptyMusicShow.value = true
|
|
|
// 需要向外面(iframe)派发计时器数据的时候触发
|
|
|
- // if(query.isbeatTimes){
|
|
|
- // console.log("webApi_beatTimes",err)
|
|
|
- // window.parent.postMessage(
|
|
|
- // {
|
|
|
- // api: "webApi_beatTimes",
|
|
|
- // data: "节拍器时值错误!!"
|
|
|
- // },
|
|
|
- // "*"
|
|
|
- // );
|
|
|
- // }
|
|
|
+ if(query.isbeatTimes){
|
|
|
+ console.log("webApi_beatTimes",err)
|
|
|
+ window.parent.postMessage(
|
|
|
+ {
|
|
|
+ api: "webApi_beatTimes",
|
|
|
+ data: "节拍器时值错误!!"
|
|
|
+ },
|
|
|
+ "*"
|
|
|
+ );
|
|
|
+ }
|
|
|
return
|
|
|
}
|
|
|
detailData.isLoading = false;
|
|
@@ -325,16 +325,16 @@ export default defineComponent({
|
|
|
handleRendered(osmd)
|
|
|
}catch(err:any){
|
|
|
// 需要向外面(iframe)派发计时器数据的时候触发
|
|
|
- // if(query.isbeatTimes){
|
|
|
- // console.log("webApi_beatTimes",err)
|
|
|
- // window.parent.postMessage(
|
|
|
- // {
|
|
|
- // api: "webApi_beatTimes",
|
|
|
- // data: "节拍器时值错误!!"
|
|
|
- // },
|
|
|
- // "*"
|
|
|
- // );
|
|
|
- // }
|
|
|
+ if(query.isbeatTimes){
|
|
|
+ console.log("webApi_beatTimes",err)
|
|
|
+ window.parent.postMessage(
|
|
|
+ {
|
|
|
+ api: "webApi_beatTimes",
|
|
|
+ data: "节拍器时值错误!!"
|
|
|
+ },
|
|
|
+ "*"
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
/** 指法配置 */
|