diff --git a/src/components/GlobalHeader/NoticeIconView.tsx b/src/components/GlobalHeader/NoticeIconView.tsx index e0461a8b..87635e87 100644 --- a/src/components/GlobalHeader/NoticeIconView.tsx +++ b/src/components/GlobalHeader/NoticeIconView.tsx @@ -1,4 +1,4 @@ -import React, { Component } from 'react'; +import { Component } from 'react'; import type { ConnectProps } from 'umi'; import { connect } from 'umi'; import { Tag, message } from 'antd'; diff --git a/src/global.tsx b/src/global.tsx index f38bb76b..5335e36b 100644 --- a/src/global.tsx +++ b/src/global.tsx @@ -1,6 +1,4 @@ import { Button, message, notification } from 'antd'; - -import React from 'react'; import { useIntl } from 'umi'; import defaultSettings from '../config/defaultSettings'; @@ -75,6 +73,7 @@ if (pwa) { }); // remove all caches + // @ts-ignore if (window.caches && window.caches.keys) { caches.keys().then((keys) => { keys.forEach((key) => {