Skip to content

Commit

Permalink
Merge pull request #150 from hocgin/feature-scss
Browse files Browse the repository at this point in the history
[新增功能](develop): update
  • Loading branch information
hocgin authored Nov 3, 2023
2 parents 3ff978d + 30fe95f commit 65eec81
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Header/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { Divider } from 'antd';
import { DoveService } from '@/Request';
import { PromiseKit } from '@hocgin/hkit';
import Promise from '../../../Promise';
import qs from 'query-string';

type Mode = 'none' | 'fixed' | 'sticky';

Expand Down Expand Up @@ -89,9 +90,12 @@ const HeaderMenu: React.FC<Props> = ({ menus, prefix, suffix, ...props }) => {
) : (
<a
className={`${prefixCls}-login`}
href={`/login?redirectUrl=${
typeof window !== 'undefined' ? window?.location?.href : ''
}`}
href={`/login?${qs.stringify({
redirectUrl:
typeof window !== 'undefined'
? window?.location?.href
: '',
})}`}
>
登陆
</a>
Expand Down

0 comments on commit 65eec81

Please sign in to comment.