skyblued 2 éve
szülő
commit
02c8e2bbe0

+ 1 - 1
src/components/fingering/index copy.tsx

@@ -163,7 +163,7 @@ export default defineComponent({
           style={{
             height: activeType.height,
             width: imgWidth,
-            maxHeight: document.querySelector('.' + styles.container)?.clientHeight + 'px'
+            // maxHeight: document.querySelector('.' + styles.container)?.clientHeight + 'px'
           }}
           onLoad={this.fullLoaded}
         />

+ 1 - 1
src/subpages/colexiu/fingering/index.tsx

@@ -25,7 +25,7 @@ const fingeringViewInfo = async (type: ITypeContentItem) => {
       const usedFixedKey = formatFixedKey(detail.name, detailState.fixedKey)
       const fullsrc = useFingeringSrc(activeType, detail.name, usedFixedKey.value)
       const { width, height } = await getImageSize(fullsrc.value)
-      const containerHeight = document.getElementById('colexiu-detail-music-sheet')!.clientHeight || 0
+      const containerHeight = document.getElementById('colexiu-detail-music-sheet')?.clientHeight || 0
       const w = runtime.evaluatingStatus ? 0 : width
       const scale = containerHeight / height
       fingeringWidth.value = containerHeight ? scale * w : w

+ 0 - 10
src/subpages/colexiu/uses/use-app.ts

@@ -41,15 +41,6 @@ export const useXml = async (url: string, detail: MusicSheelDetail) => {
   return score
 }
 
-/**给app传伴奏 */
-const pushAppMusic = (accompanyUrl: string) => {
-  postMessage({
-    api: 'cloudAccompanyMessage',
-    content: {
-      accompanyUrl,
-    },
-  })
-}
 /**
  * 设置音频信息
  * @param detail 音乐详情
@@ -61,7 +52,6 @@ export const useMp3s = async (detail: MusicSheelDetail) => {
 
   // 伴奏
   const backgroundSong = encodeURI(detail.audioFileUrl || detail.metronomeUrl || detail.url || '')
-  pushAppMusic(backgroundSong)
   // 原音
   const musicSong = encodeURI(activebg?.audioFileUrl || activebg?.metronomeUrl || '')
   // 兼容未修改之前

+ 1 - 1
src/subpages/colexiu/uses/use-fingering.ts

@@ -22,7 +22,7 @@ const fingeringViewInfo = async (type: ITypeContentItem) => {
       const usedFixedKey = formatFixedKey(detail.name, detailState.fixedKey)
       const fullsrc = useFingeringSrc(activeType, detail.name, usedFixedKey.value)
       const { width, height } = await getImageSize(fullsrc.value)
-      const containerHeight = document.getElementById('colexiu-detail-music-sheet')!.clientHeight || 0
+      const containerHeight = document.getElementById('colexiu-detail-music-sheet')?.clientHeight || 0
       const w = runtime.evaluatingStatus ? 0 : width
       const scale = containerHeight / height
       fingeringWidth.value = containerHeight ? scale * w : w