Yong Zhu
Yong Zhu
我正好也在学习这个,多打些断点就明白了,简单记录一下我的分析: 登录按钮后依次调用: handleSubmit -> handleLogin(username, password) -> login(username, password) -> dispatch(setUserToken(token)); dispach了一个types.USER_SET_USER_TOKEN类型的action, 造成reducer里的对应action执行了,结果就是state里的user变量被改变了,react就从最顶层重新开始刷新,因为当前页面还是/login,所以继续执行 这个路由,然后还是在Login函数里碰到 ``` if (token) { return ; } ``` 这时因为user.token有值了,所以会跳转到/dashboard路由上,重新刷新就跑到 这个路由里去了,也就是去加载Layout了, 至此登录过程完成。
"mvn clean compile exec:exec" still keep same, after close DOS the Java.exe still exist at background. I think you should know what's the Web server embedded in Actframework, usually a...
抱歉我最近一段时间家务事太多,没有时间修复这个bug,请试试能不能用tableTail功能暂时实现table comment
分裂算法史无前例,无法用AI助力