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