Kaynağa Gözat

Merge branch 'feature-tianyong' into gym-test

TIANYONG 4 hafta önce
ebeveyn
işleme
247680ce35
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/page-instrument/App.tsx

+ 1 - 1
src/page-instrument/App.tsx

@@ -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,