diff --git a/src/contexts/auth/index.tsx b/src/contexts/auth/index.tsx index a01113a..d4dca3b 100644 --- a/src/contexts/auth/index.tsx +++ b/src/contexts/auth/index.tsx @@ -110,6 +110,12 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => { } // 登出 const logout = async () => { + setTimeout(()=>{ + const a = document.createElement('a') + a.setAttribute('href','https://portal.chuhai.edu.hk/signout') + a.setAttribute('target','_blank') + a.click() + },0) setAuthToken(null) removeRoleStorage() dispatch({