/*
|
* @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);
|
};
|