mirror of https://gitee.com/answerdev/answer.git
fix(Header): Handling redirects when clicking on the `login` menu
This commit is contained in:
parent
6eed25f48c
commit
3e1e411dd0
|
@ -19,7 +19,7 @@ import {
|
|||
|
||||
import classnames from 'classnames';
|
||||
|
||||
import { userCenter } from '@/utils';
|
||||
import { userCenter, floppyNavigation } from '@/utils';
|
||||
import {
|
||||
loggedUserInfoStore,
|
||||
siteInfoStore,
|
||||
|
@ -152,6 +152,7 @@ const Header: FC = () => {
|
|||
'link-light': navbarStyle === 'theme-colored',
|
||||
'link-primary': navbarStyle !== 'theme-colored',
|
||||
})}
|
||||
onClick={() => floppyNavigation.storageLoginRedirect()}
|
||||
href={userCenter.getLoginUrl()}>
|
||||
{t('btns.login')}
|
||||
</Button>
|
||||
|
@ -224,6 +225,7 @@ const Header: FC = () => {
|
|||
'link-light': navbarStyle === 'theme-colored',
|
||||
'link-primary': navbarStyle !== 'theme-colored',
|
||||
})}
|
||||
onClick={() => floppyNavigation.storageLoginRedirect()}
|
||||
href={userCenter.getLoginUrl()}>
|
||||
{t('btns.login')}
|
||||
</Button>
|
||||
|
|
|
@ -136,4 +136,5 @@ export const floppyNavigation = {
|
|||
isRoutableLink,
|
||||
handleRouteLinkClick,
|
||||
equalToCurrentHref,
|
||||
storageLoginRedirect,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue