forked from newthuhole/hole_thu_frontend
避免临时token撞车
This commit is contained in:
@@ -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 = '';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user