🐞 fix: 修复路径token校验bug
This commit is contained in:
parent
b2a6982c37
commit
5244282e09
|
@ -21,7 +21,7 @@ export default class App extends Component {
|
|||
componentWillMount() {
|
||||
const tokenString = this.props.location.search;
|
||||
const authorization = tokenString.substring(tokenString.indexOf("=") + 1);
|
||||
if (tokenString) {
|
||||
if (tokenString && tokenString.indexOf("=") > -1) {
|
||||
this.setState({ authorization });
|
||||
this.onSubmit();
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue