|
@@ -2,12 +2,12 @@ import React, { useCallback, useEffect } from 'react'
|
|
|
import styles from './index.module.scss'
|
|
|
import TopCom from '@/components/TopCom'
|
|
|
import { Button } from 'antd'
|
|
|
-import history from '@/utils/history'
|
|
|
import { setTokenInfo } from '@/utils/storage'
|
|
|
import { MessageFu } from '@/utils/message'
|
|
|
import { useParams } from 'react-router-dom'
|
|
|
import { API_login } from '@/store/action/all'
|
|
|
import { baseUrlTemp } from '@/utils/http'
|
|
|
+import { domShowFu } from '@/utils/domShow'
|
|
|
function Z1login() {
|
|
|
// 获取地址栏参数 1:课程 2:展馆
|
|
|
const urlObjTemp: any = useParams()
|
|
@@ -50,7 +50,14 @@ function Z1login() {
|
|
|
// // 跳到首页
|
|
|
setTokenInfo(res.data)
|
|
|
MessageFu.success('登录成功!')
|
|
|
- history.replace(window.location.href.includes('/login/1') ? '/' : '/exhi')
|
|
|
+ domShowFu('#AsyncSpinLoding', true)
|
|
|
+
|
|
|
+ setTimeout(() => {
|
|
|
+ domShowFu('#AsyncSpinLoding', false)
|
|
|
+ window.location.href = `${baseUrlTemp}/web/home.html`
|
|
|
+ }, 400)
|
|
|
+
|
|
|
+ // history.replace(window.location.href.includes('/login/1') ? '/' : '/exhi')
|
|
|
}
|
|
|
}, [])
|
|
|
|