Browse Source

feat: osmd对象增加DYMusicScoreId:曲谱Id属性

TIANYONG 1 year ago
parent
commit
36dd320233
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/view/music-score/index.tsx

+ 1 - 0
src/view/music-score/index.tsx

@@ -94,6 +94,7 @@ export default defineComponent({
 					keySignature: true,
 					keySignature: true,
 				};
 				};
 			}
 			}
+			osmd.EngravingRules.DYMusicScoreId = state.examSongId || ''
 			await osmd.load(musicData.score);
 			await osmd.load(musicData.score);
 			osmd.zoom = state.zoom;
 			osmd.zoom = state.zoom;
 			osmd.render();
 			osmd.render();