Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baiguangyao
mr-julyedu
Commits
576d45c5
Commit
576d45c5
authored
Oct 19, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直播间登录问题
parent
3dc65edf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/components/passport/bindingTel/index.js
+4
-2
No files found.
src/components/passport/bindingTel/index.js
View file @
576d45c5
import
React
,
{
Component
}
from
"react"
import
"./binding-tel.scss"
import
{
withFormik
,
Field
,
Form
}
from
"formik"
import
{
http
,
getParam
}
from
"src/utils"
import
{
http
,
getParam
,
isValidUrl
}
from
"src/utils"
import
{
compose
}
from
"redux"
import
{
connect
}
from
"react-redux"
import
{
setCurrentUser
}
from
"src/store/userAction"
...
...
@@ -176,7 +176,9 @@ const formikConfig = {
const
redirect
=
localStorage
.
getItem
(
"binding_redirect"
)
if
(
redirect
)
{
localStorage
.
removeItem
(
"binding_redirect"
)
window
.
location
.
assign
(
JSON
.
parse
(
redirect
))
isValidUrl
(
redirect
)
?
window
.
location
.
assign
(
JSON
.
parse
(
redirect
))
:
history
.
replace
(
JSON
.
parse
(
redirect
))
}
else
{
window
.
location
.
assign
(
data
.
data
[
"jump_url"
])
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment