소스 검색

feat: 渲染加载耗时输出

TIANYONG 11 달 전
부모
커밋
087e4400b2
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/page-instrument/view-detail/index.tsx
  2. 1 0
      src/view/music-score/index.tsx

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

@@ -117,7 +117,7 @@ export default defineComponent({
       }
     };
     onBeforeMount(async () => {
-      console.time("渲染加载耗时");
+      // console.time("渲染加载耗时");
       api_keepScreenLongLight();
       getAPPData();
       api_setStatusBarVisibility();

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

@@ -80,6 +80,7 @@ export default defineComponent({
 		};
 
 		const init = async () => {
+			console.time("渲染加载耗时");
 			const container = document.getElementById("musicAndSelection");
 			if (!container || !musicData.score) return;
 			setGlobalMusicSheet();