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