无法使用react-router在“历史记录”上执行“ replaceState”

时间:2019-03-06 14:49:24

标签: reactjs react-router

execute(TupleWindow window) { //Emit the entire window as one tuple to next bolt List<Tuple> tuples = window.get(); Values values = new Values(new ArrayList<Tuple>(tuples)); collector.emit(tuples, values); } 引起错误后,“反应路由器”之类的东西似乎有问题。 按登录按钮时,将导致错误。

enter image description here

run-build

登录组件

return (
  this.state.getuser != null &&
  <div>
    <Switch>
      <LoginRoute exact path="/" component={LoginPage} />
      <SystemRoute exact path="/home" component={HomePage} />
      <SystemRoute exact path="/order" component={OrderPage} />
      <SystemRoute exact path="/cook" component={CookPage} />
      <SystemRoute exact path="/getmoney" component={GetmoneyPage} />
      <SystemRoute exact path="/managemenu" component={ManageMunu} />
      <SystemRoute exact path="/profile" component={Profile} />
      <Route component={LoginPage} />
    </Switch>
  </div>
)

0 个答案:

没有答案