Commit 862ccb17 by zhanghaozhe

直播地址播放

parent 23d0e32b
...@@ -231,7 +231,7 @@ class App extends Component { ...@@ -231,7 +231,7 @@ class App extends Component {
this.setPreviousLocation() this.setPreviousLocation()
if (!this.props.user.hasError && getParam('redirect')) { if (!this.props.user.hasError && getParam('redirect')) {
window.location.href = getParam('redirect') window.location.href = decodeURIComponent(getParam('redirect'))
} }
} }
......
...@@ -90,7 +90,7 @@ class Passport extends Component { ...@@ -90,7 +90,7 @@ class Passport extends Component {
let {hasError} = this.props.user let {hasError} = this.props.user
if (!hasError && !this.blackList.has(this.props.location.pathname)) { if (!hasError && !this.blackList.has(this.props.location.pathname)) {
const redirectURI = getParam('redirect') const redirectURI = getParam('redirect')
redirectURI ? (window.location.href = redirectURI) : this.props.history.go(-this.count) redirectURI ? (window.location.href = decodeURIComponent(redirectURI)) : this.props.history.go(-this.count)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment