diff --git a/src/Title.js b/src/Title.js index a924b94..725f06b 100644 --- a/src/Title.js +++ b/src/Title.js @@ -12,6 +12,7 @@ const HELP_TEXT=(
  • 在列表中点击帖子可以展开全部回复
  • 在搜索框输入 #472865 等可以查看指定 ID 的树洞
  • 新的帖子会在左上角显示一个圆点
  • +
  • 登录后可以关注帖子
  • 请注意:使用 HTTPS 访问本站可能会大幅减慢加载速度
  • 自定义背景图片请修改 localStorage['REPLACE_ERIRI_WITH_URL']
  • @@ -61,8 +62,9 @@ class ControlBar extends PureComponent { const text=window.location.hash.substr(1); this.setState({ search_text: text, + }, ()=>{ + this.on_keypress({key: 'Enter'}); }); - this.set_mode(text); } } diff --git a/src/UserAction.js b/src/UserAction.js index 1306113..885c036 100644 --- a/src/UserAction.js +++ b/src/UserAction.js @@ -22,6 +22,9 @@ export class LoginForm extends Component { do_login(event,set_token) { event.preventDefault(); + if(this.state.loading_status==='loading') + return; + this.setState({ loading_status: 'loading', }); @@ -75,7 +78,7 @@ export class LoginForm extends Component {

    {this.state.loading_status==='loading' ? - : + : } @@ -83,8 +86,8 @@ export class LoginForm extends Component {