diff --git a/.eslintrc b/.eslintrc index ef3a582..1c8986b 100644 --- a/.eslintrc +++ b/.eslintrc @@ -8,6 +8,7 @@ "no-prototype-builtins": "off", "import/first": "off", "react/no-children-prop": "off", - "import/no-commonjs": "off" + "import/no-commonjs": "off", + "ignoreTranspilerName": false } } diff --git a/src/pages/classList/index.tsx b/src/pages/classList/index.tsx index 28426d0..c188493 100644 --- a/src/pages/classList/index.tsx +++ b/src/pages/classList/index.tsx @@ -15,7 +15,7 @@ import { dataLoadingStatus, getFilterData } from '@/common/util' import LoadingCard from '@/components/loadingCard' import useLogin from '@/use/useLogin' -const ClassList = () => { +export default () => { useLogin() const [showPopup, setShowPopup] = useState(false) @@ -146,4 +146,3 @@ const ClassList = () => { ) } -export default ClassList diff --git a/src/pages/collection/index.tsx b/src/pages/collection/index.tsx index f5a7ac6..ecfa0ee 100644 --- a/src/pages/collection/index.tsx +++ b/src/pages/collection/index.tsx @@ -12,7 +12,7 @@ import { alert, goLink } from '@/common/common' import { CreateFavoriteApi, DelFavoriteApi, FavoriteListApi, UpdateFavoriteApi } from '@/api/favorite' import useLogin from '@/use/useLogin' -const Collection = () => { +export default () => { useLogin() // 获取搜索数据 @@ -167,4 +167,3 @@ const Collection = () => { ) } -export default Collection