避免临时token撞车

This commit is contained in:
2021-12-15 01:44:40 +08:00
parent 3fa49b9ad6
commit 08c5594622

View File

@@ -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 = '';
}
}