From 839d39108a75b5d6f3d6124c9a80bdcbf53b5180 Mon Sep 17 00:00:00 2001 From: xmcp Date: Thu, 25 Oct 2018 17:35:47 +0800 Subject: [PATCH] bugfix --- src/Title.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Title.js b/src/Title.js index 7807122..2de3b59 100644 --- a/src/Title.js +++ b/src/Title.js @@ -60,7 +60,7 @@ class ControlBar extends PureComponent { componentDidMount() { if(window.location.hash) { - let text=window.location.hash.substr(1); + let text=decodeURIComponent(window.location.hash).substr(1); if(text.lastIndexOf('?')!==-1) text=text.substr(0,text.lastIndexOf('?')); // fuck wechat '#param?nsukey=...' this.setState({