You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
782 B
JavaScript
25 lines
782 B
JavaScript
import { Flex, Result, Spin } from 'antd'
|
|
|
|
function Login() {
|
|
|
|
const urlSearch = new URLSearchParams(location.search)
|
|
const originUrl = urlSearch.get('origin_url')
|
|
|
|
window.location = 'https://login.dingtalk.com/oauth2/auth?redirect_uri=https%3A%2F%2Fsales.mycht.cn%2Fp%2Fdingding%2Fcallback%3Forigin_url%3D' + originUrl + '&response_type=code&client_id=dingwgdx6emlxr3fcrg8&scope=openid&state=global-saels&prompt=consent'
|
|
|
|
return (
|
|
<Flex justify='center' align='center' gap='middle' vertical>
|
|
<Result
|
|
status='success'
|
|
title='欢迎使用'
|
|
subTitle='正在跳转到钉钉登录页面'
|
|
extra={[
|
|
<Spin key='dingding-login' size='small' />
|
|
]}
|
|
/>
|
|
</Flex>
|
|
)
|
|
}
|
|
|
|
export default Login
|