Merge remote-tracking branch 'origin/main' into dev/chat
commit
6cfc936646
@ -0,0 +1,32 @@
|
|||||||
|
import useAuthStore from '@/stores/AuthStore'
|
||||||
|
import { Flex, Result, Spin, Typography } from 'antd'
|
||||||
|
import { useEffect } from 'react'
|
||||||
|
import { useNavigate } from 'react-router-dom'
|
||||||
|
|
||||||
|
|
||||||
|
function Logout() {
|
||||||
|
|
||||||
|
const navigate = useNavigate()
|
||||||
|
|
||||||
|
const { logout } = useAuthStore()
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
logout()
|
||||||
|
navigate('/p/dingding/qrcode')
|
||||||
|
}, [])
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Flex justify='center' align='center' gap='middle' vertical>
|
||||||
|
<Result
|
||||||
|
status='success'
|
||||||
|
title='退出成功'
|
||||||
|
subTitle='正在跳转登陆页面'
|
||||||
|
extra={[
|
||||||
|
<Spin size='small' />
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
</Flex>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Logout
|
Loading…
Reference in New Issue