|
@@ -309,6 +309,20 @@ export default defineComponent({
|
|
// pushAppMusic();
|
|
// pushAppMusic();
|
|
// console.timeEnd("渲染加载耗时");
|
|
// console.timeEnd("渲染加载耗时");
|
|
};
|
|
};
|
|
|
|
+ function handleOnRendered(osmd: any) {
|
|
|
|
+ try{
|
|
|
|
+ handleRendered(osmd)
|
|
|
|
+ }catch(err){
|
|
|
|
+ console.log("webApi_beatTimes",err)
|
|
|
|
+ window.parent.postMessage(
|
|
|
|
+ {
|
|
|
|
+ api: "webApi_beatTimes",
|
|
|
|
+ data: "-1"
|
|
|
|
+ },
|
|
|
|
+ "*"
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ }
|
|
/** 指法配置 */
|
|
/** 指法配置 */
|
|
const fingerConfig = computed<any>(() => {
|
|
const fingerConfig = computed<any>(() => {
|
|
if (state.setting.displayFingering && state.fingeringInfo?.name) {
|
|
if (state.setting.displayFingering && state.fingeringInfo?.name) {
|
|
@@ -542,7 +556,7 @@ export default defineComponent({
|
|
ref={musicScoreRef}
|
|
ref={musicScoreRef}
|
|
musicColor={state.isPreView ? '#000000' : '#FFFFFF'}
|
|
musicColor={state.isPreView ? '#000000' : '#FFFFFF'}
|
|
showPartNames={state.isCombineRender}
|
|
showPartNames={state.isCombineRender}
|
|
- onRendered={handleRendered}
|
|
|
|
|
|
+ onRendered={handleOnRendered}
|
|
>
|
|
>
|
|
{/* 旋律线关闭时候的 标题和作者 */}
|
|
{/* 旋律线关闭时候的 标题和作者 */}
|
|
<AuthorName></AuthorName>
|
|
<AuthorName></AuthorName>
|