广州矛调粤政易端
xusd
7 days ago d27794814b69d18aeb8ee96a46cae91d5613570c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * @Company: hugeInfo
 * @Author: lwh
 * @Date: 2023-07-20 09:38:04
 * @LastEditTime: 2023-07-20 09:42:52
 * @LastEditors: lwh
 * @Version: 1.0.0
 * @Description: 入口文件
 */
import React from 'react';
import ReactDOM from 'react-dom';
import reportWebVitals from './reportWebVitals';
import Routers from './router';
import './styles/index.less';
 
ReactDOM.render(<Routers />, document.getElementById('root'));
 
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
 
// 添加 ResizeObserver 错误处理
const resizeObserverError = 'ResizeObserver loop completed with undelivered notifications.';
const originalError = window.console.error;
window.console.error = (...args) => {
  if (args[0] && typeof args[0] === 'string' && args[0].includes(resizeObserverError)) {
    return;
  }
  originalError.apply(window.console, args);
};