From ed333004047d5ad06af9530aba69454710785bcd Mon Sep 17 00:00:00 2001 From: ZLY Date: Thu, 11 Sep 2025 09:39:45 +0800 Subject: [PATCH] =?UTF-8?q?pref(user):=20=E7=A7=BB=E9=99=A4=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=20react-redux=20=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/user.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/hooks/user.ts b/src/hooks/user.ts index 28f8f93..5ba5cff 100644 --- a/src/hooks/user.ts +++ b/src/hooks/user.ts @@ -1,5 +1,4 @@ import { Message } from '@arco-design/web-react'; -import { useDispatch } from 'react-redux'; import { logout } from '@/api/user'; import { clearToken } from '@/utils/auth'; @@ -8,7 +7,6 @@ interface UseUserReturnType { } export default function useUser(): UseUserReturnType { - const dispatch = useDispatch(); const logoutHooks = async () => { try {