mirror of
https://github.com/PlayEdu/backend
synced 2025-06-08 10:24:10 +08:00
登录跳转更新组件缓存优化
This commit is contained in:
parent
db39805031
commit
a71be154d8
@ -15,7 +15,7 @@ const ErrorPage = () => {
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={() => {
|
||||
navigate("/");
|
||||
navigate("/", { replace: true });
|
||||
}}
|
||||
>
|
||||
返回首页
|
||||
|
@ -71,7 +71,7 @@ const LoginPage = () => {
|
||||
await getSystemConfig(); //获取系统配置并写入store
|
||||
await getUser(); //获取登录用户的信息并写入store
|
||||
|
||||
navigate("/");
|
||||
navigate("/", { replace: true });
|
||||
} catch (e) {
|
||||
message.error("登录出现错误");
|
||||
console.error("错误信息", e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user