|
@@ -40,6 +40,7 @@ import Loading from "./loading"
|
|
|
import ExerciseStatistics from "../custom-plugins/ExerciseStatistics"
|
|
|
import { musicData } from "/src/view/music-score"
|
|
|
import Vip from "/src/page-instrument/component/vip"
|
|
|
+import { getSvgPngToSize } from "/src/helpers/svgToPng"
|
|
|
// import bgJson from "./images/index.json";
|
|
|
|
|
|
// const DelayCheck = defineAsyncComponent(() =>
|
|
@@ -312,6 +313,18 @@ export default defineComponent({
|
|
|
// } else {
|
|
|
// state.musicScoreBtnDirection = state.playBtnDirection;
|
|
|
// }
|
|
|
+
|
|
|
+ // 管乐迷曲谱详情页,需要下载A4尺寸的图片
|
|
|
+ if (query.downPng === 'A4') {
|
|
|
+ const imgList = getSvgPngToSize(state.osmd)
|
|
|
+ console.log('A4', imgList)
|
|
|
+ window.parent.postMessage({
|
|
|
+ api: 'musicStaffRender',
|
|
|
+ loading: false,
|
|
|
+ osmdImg: imgList
|
|
|
+ }, '*');
|
|
|
+ }
|
|
|
+
|
|
|
state.musicScoreBtnDirection = state.playBtnDirection;
|
|
|
state.musicRendered = true;
|
|
|
|