diff --git a/src/App.js b/src/App.js index c3a7295..0a6d652 100644 --- a/src/App.js +++ b/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 = ''; } }