Forráskód Böngészése

feat: 检测妙极客曲子渲染问题

TIANYONG 1 éve
szülő
commit
eb45ea8016

+ 4 - 4
src/page-instrument/view-detail/index.tsx

@@ -379,10 +379,10 @@ export default defineComponent({
             />
           }
 
-          {/* {
-            state.musicRendered && 
-            <TestCheck />
-          } */}
+          // {
+          //   state.musicRendered && 
+          //   <TestCheck />
+          // }
 
           {/* 指法 */}
           {state.setting.displayFingering && state.fingeringInfo?.name && !state.isPreView && state.isShowFingering && (

+ 9 - 9
src/view/music-score/testCheck.tsx

@@ -7935,7 +7935,6 @@ export default defineComponent({
                 }
             }
             console.log('🚀 ~ evxml循环完成','没有times和timegap的:',state.noTimes,'解析报错的xml:',errorList)
-            debugger
         }
 		/** 设置 曲谱模式,五线谱还是简谱 */
 		const setRenderType = () => {
@@ -8006,14 +8005,15 @@ export default defineComponent({
              * xml2报错的,37,311,334,347,381,386,418,456,469,474,479
              */
             // 
-            let xmlError: any = [], xmlError2: any = [], 
-            errors = [144, 466, 642,667,726,759,1088,1130,1193,1195,1196,1197,1200,1201,1202,1255,1426,1793,1993], errors2 = [37,311,334,347,381,386,418,456,469,474,479];
-            // @ts-ignore
-            errors.forEach((n: any) => xmlError.push(xmlList[n]))
-            errors2.forEach((n: any) => xmlError2.push(xmlList2[n]))
-            xmlError = xmlError.concat(xmlError2).filter((n: any) => n.evxml_file_url)
-            console.log('xml报错的曲子',xmlError[9])
-            //checkRender(xmlError);
+            // let xmlError: any = [], xmlError2: any = [], 
+            // errors = [144, 466, 642,667,726,759,1088,1130,1193,1195,1196,1197,1200,1201,1202,1255,1426,1793,1993], errors2 = [37,311,334,347,381,386,418,456,469,474,479];
+            // // @ts-ignore
+            // errors.forEach((n: any) => xmlError.push(xmlList[n]))
+            // errors2.forEach((n: any) => xmlError2.push(xmlList2[n]))
+            // xmlError = xmlError.concat(xmlError2).filter((n: any) => n.evxml_file_url)
+            // console.log('xml报错的曲子',xmlError[9])
+            state.isEvxml = true
+            // checkRender(xmlList2);
 		});
 		return () => (
 			<div