Commit d9efff1e by zhanghaozhe

ai测试

parent c20d33f9
...@@ -9,7 +9,10 @@ class HeaderBar extends Component { ...@@ -9,7 +9,10 @@ class HeaderBar extends Component {
} }
goBack = () => { goBack = () => {
const {state} = this.props.location const {state, hash} = this.props.location
if(hash.includes('goback')){
window.history.go(-1)
}
if(browser.isWeixin && getParam('code') && getParam('state')){ if(browser.isWeixin && getParam('code') && getParam('state')){
window.history.go(-2) window.history.go(-2)
} }
......
...@@ -266,7 +266,7 @@ class Scores extends Component { ...@@ -266,7 +266,7 @@ class Scores extends Component {
</td> </td>
<td> <td>
{ {
item.prize_url ? <a href={item.prize_url}>{item.prize}</a> : item.prize item.prize_url ? <a href={`${item.prize_url}#goback`}>{item.prize}</a> : item.prize
} }
</td> </td>
</tr> </tr>
......
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