diff --git a/src/contexts/auth/index.tsx b/src/contexts/auth/index.tsx index ef0dc1d..f7fcbd5 100644 --- a/src/contexts/auth/index.tsx +++ b/src/contexts/auth/index.tsx @@ -1,7 +1,7 @@ import React, {createContext, useEffect, useReducer} from "react"; import Loader from "@/components/loader"; -import {clearAuth, getAuthToken, setAuthToken} from "@/hooks/useAuth.ts"; +import {getAuthToken, setAuthToken} from "@/hooks/useAuth.ts"; import {auth} from "@/service/api/user.ts"; import {getAllCategory} from "@/service/api/article.ts"; import {BizError} from "@/service/types.ts"; diff --git a/src/pages/news/edit.tsx b/src/pages/news/edit.tsx index 086b42a..f565728 100644 --- a/src/pages/news/edit.tsx +++ b/src/pages/news/edit.tsx @@ -118,7 +118,7 @@ export default function NewEdit() { const checked = selectedRowKeys.includes(item.id) return
setEditId(item.id)}> -
+
{item.title}
{item.summary}