|
@@ -146,7 +146,7 @@ export default defineComponent({
|
|
|
*/
|
|
|
window.onload = function() {
|
|
|
console.log('加载完成')
|
|
|
- let timing: any = performance.getEntriesByType('navigation')[0];
|
|
|
+ let timing: any = performance.getEntriesByType('navigation')[0] || {};
|
|
|
const { domainLookupEnd, domainLookupStart, connectEnd, connectStart, responseStart,
|
|
|
requestStart, responseEnd, domInteractive, loadEventStart, domContentLoadedEventEnd,
|
|
|
fetchStart, secureConnectionStart, transferSize, encodedBodySize,
|