Browse Source

避免临时token撞车

pull/6/head
hole-thu 4 years ago
parent
commit
08c5594622
  1. 2
      src/App.js

2
src/App.js

@ -100,7 +100,7 @@ class App extends Component {
let arg = window.location.search;
console.log(arg);
if (arg.startsWith('?token=')) {
localStorage['TOKEN'] = arg.substr(7);
localStorage['TOKEN'] = arg.substr(7).replace(encodeURI('任意自定义后缀'), Math.random());
window.location.search = '';
}
}

Loading…
Cancel
Save