Browse Source

feat: 渲染加载耗时输出

TIANYONG 11 months ago
parent
commit
087e4400b2
2 changed files with 2 additions and 1 deletions
  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();