فهرست منبع

fix: bug修复

TIANYONG 7 ماه پیش
والد
کامیت
af3ceb5ff0

BIN
src/views/creation/images/btn.png


+ 3 - 3
src/views/creation/index-share.tsx

@@ -159,7 +159,7 @@ export default defineComponent({
         // if (state.list.length > 0 && result.current === 1) {
         //   return
         // }
-        state.list = state.list.concat(result.rows || [])
+        this.state.list = result.rows || []
         state.listState.finished = result.current >= result.pages
         state.params.page = result.current + 1
         state.listState.dataShow = state.list.length > 0
@@ -441,8 +441,8 @@ export default defineComponent({
     });
     // 初始化五线谱
     function initStaff(){
-      // const src = `/klx-music-score/#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
-      const src = `http://192.168.3.68:3000/instrument.html#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
+      const src = `/klx-music-score/#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
+      // const src = `http://192.168.3.68:3000/instrument.html#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
       staffState.staffSrc = src
       window.addEventListener('message', (event) => {
         const { api, height } = event.data;

+ 5 - 0
src/views/creation/index.module.less

@@ -498,6 +498,11 @@
       }
     }
   }
+  :global {
+    .van-empty__description {
+      color: #fff;
+    }
+  }
 }
 
 .upward{

+ 2 - 2
src/views/creation/index.tsx

@@ -424,8 +424,8 @@ export default defineComponent({
     }
     // 初始化五线谱
     function initStaff(){
-      // const src = `/klx-music-score/#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
-      const src = `http://192.168.3.68:3000/instrument.html#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
+      const src = `/klx-music-score/#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
+      // const src = `http://192.168.3.68:3000/instrument.html#/simple-detail?id=${state.musicDetail.musicSheetId}&musicRenderType=${staffState.musicRenderType}&part-index=${staffState.partIndex}&userMusicId=${state.id}`;
       staffState.staffSrc = src
       window.addEventListener('message', (event) => {
         const { api, height } = event.data;