|
@@ -44,8 +44,8 @@ const menus = [
|
|
|
{ label: '退出', key: 'logout' }
|
|
|
]
|
|
|
const handlerMenuClick: MenuProps['onClick'] = async e => {
|
|
|
- await postLogout()
|
|
|
if (e.key === 'logout') {
|
|
|
+ await postLogout()
|
|
|
location.replace(mainURL)
|
|
|
} else {
|
|
|
location.href = `${mainURL}/#/information`
|