刷新页面缓存登录,不会触发afterLoginAction #3860
Replies: 1 comment
-
已经解决了,逻辑应该放在getUserInfoAction中 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
在store/modules/user.ts actions中的afterLoginAction中,我增加了登录之后,会开启一个webscoket的,但是在开发时热重载或者刷新页面后,没执行这里的逻辑,不会触发这个方法。使用缓存登录成功建议也提供钩子
Beta Was this translation helpful? Give feedback.
All reactions