From 08c5594622322df0e7589245807dfbaf669ec97e Mon Sep 17 00:00:00 2001 From: hole-thu Date: Wed, 15 Dec 2021 01:44:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E4=B8=B4=E6=97=B6token?= =?UTF-8?q?=E6=92=9E=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ''; } }