Skip to content

Commit

Permalink
Update page.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
239573049 authored Dec 28, 2024
1 parent b23b1b8 commit 28ad2a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lobe/src/pages/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Login = memo(() => {
localStorage.setItem('token', token.data.token);
localStorage.setItem('role', token.data.role);
message.success({ title: '登录成功', content: '即将跳转到首页' } as any);
if (redirect_uri && redirect_uri.startsWith('http')) {
if (redirect_uri) {
const url = new URL(redirect_uri);
url.searchParams.append('token', token.data.token);
handleAuthRedirect(url.toString());
Expand Down Expand Up @@ -157,4 +157,4 @@ const Login = memo(() => {
</GridShowcase>
);
});
export default Login;
export default Login;

0 comments on commit 28ad2a4

Please sign in to comment.