🐞 fix: 修复路径token校验bug

This commit is contained in:
wangsongsole 2023-03-14 19:23:34 +08:00
parent b2a6982c37
commit 5244282e09
1 changed files with 1 additions and 1 deletions

View File

@ -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;