登录跳转更新组件缓存优化

This commit is contained in:
禺狨 2023-04-20 09:36:05 +08:00
parent db39805031
commit a71be154d8
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ const ErrorPage = () => {
<Button
type="primary"
onClick={() => {
navigate("/");
navigate("/", { replace: true });
}}
>

View File

@ -71,7 +71,7 @@ const LoginPage = () => {
await getSystemConfig(); //获取系统配置并写入store
await getUser(); //获取登录用户的信息并写入store
navigate("/");
navigate("/", { replace: true });
} catch (e) {
message.error("登录出现错误");
console.error("错误信息", e);