bugfix
This commit is contained in:
@@ -60,7 +60,7 @@ class ControlBar extends PureComponent {
|
|||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
if(window.location.hash) {
|
if(window.location.hash) {
|
||||||
let text=window.location.hash.substr(1);
|
let text=decodeURIComponent(window.location.hash).substr(1);
|
||||||
if(text.lastIndexOf('?')!==-1)
|
if(text.lastIndexOf('?')!==-1)
|
||||||
text=text.substr(0,text.lastIndexOf('?')); // fuck wechat '#param?nsukey=...'
|
text=text.substr(0,text.lastIndexOf('?')); // fuck wechat '#param?nsukey=...'
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|||||||
Reference in New Issue
Block a user