|
@@ -117,6 +117,7 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
+ console.time('开始加载')
|
|
|
onBeforeMount(async () => {
|
|
|
// console.time("渲染加载耗时");
|
|
|
api_keepScreenLongLight();
|
|
@@ -151,6 +152,14 @@ export default defineComponent({
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
+ window.onload = function() {
|
|
|
+ console.log('加载完成111')
|
|
|
+ let timing: any = performance.getEntriesByType('navigation')[0];
|
|
|
+ console.log(timing.domInteractive);
|
|
|
+ console.log(timing.fetchStart);
|
|
|
+ let diff = timing.domInteractive - timing.fetchStart;
|
|
|
+ console.log("TTI: " + diff);
|
|
|
+ };
|
|
|
// console.log(route.params, query)
|
|
|
onMounted(async () => {
|
|
|
(window as any).appName = "colexiu";
|
|
@@ -172,6 +181,7 @@ export default defineComponent({
|
|
|
// getMusicInfo(values[0]);
|
|
|
// });
|
|
|
window.addEventListener('message', changePlay)
|
|
|
+ console.log('加载中22222')
|
|
|
const guideInfoStore = localStorage.getItem('guideInfo') ? JSON.parse(localStorage.getItem('guideInfo')) : {};
|
|
|
state.guideInfo = guideInfoStore
|
|
|
try {
|