Commit a9e0b23a authored by cellee's avatar cellee

退出登录dva数据留存问题

Signed-off-by: cellee's avatarcellee <893264950@qq.com>
parent dcce2c44
......@@ -48,11 +48,12 @@ class AvatarDropdown extends React.Component<GlobalHeaderRightProps> {
}
// 在返回登录页
dispatch({
type: 'login/logout',
});
// 刷新一下,避免 dva 的数据还存在
window.location.pathname = '/';
// dispatch({
// type: 'login/logout',
// });
}
return;
}
......
......@@ -97,10 +97,10 @@ class SecurityLayout extends React.Component<SecurityLayoutProps, SecurityLayout
// 访客记录
{ path: '/CommunityManagement/VisitorRecord', title: '访客记录', key: '60' },
// 账号管理
{ path: 'AccountManagement/account', title: '账号管理', key: '62' },
{ path: 'AccountManagement/account/Detail', title: '查看账号', key: '63' },
{ path: 'AccountManagement/account/edit', title: '编辑账号', key: '64' },
{ path: 'AccountManagement/account/Add', title: '添加账号', key: '65' },
{ path: '/AccountManagement/account', title: '账号管理', key: '62' },
{ path: '/AccountManagement/account/Detail', title: '查看账号', key: '63' },
{ path: '/AccountManagement/account/edit', title: '编辑账号', key: '64' },
{ path: '/AccountManagement/account/Add', title: '添加账号', key: '65' },
];
const permission = JSON.parse(localStorage.getItem('permission') || '[]');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment