Skip to content

Commit 2951fed

Browse files
committed
fix: /login path some layout error
1 parent b91b37b commit 2951fed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/src/layouts/default.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface DefaultLayoutProps {
1010

1111
export default function DefaultLayout({ children }: DefaultLayoutProps) {
1212
const { pathname } = useLocation();
13-
const isSimpleLayout = pathname === '/login' || pathname === '/oauth-error' || pathname === '/setup-guide';
13+
const isSimpleLayout = pathname.replace(/\/$/, '') === '/login' || pathname.replace(/\/$/, '') === '/oauth-error' || pathname.replace(/\/$/, '') === '/setup-guide';
1414

1515
return isSimpleLayout ? (
1616
// 登录页面和错误页面:简洁布局,无导航栏

0 commit comments

Comments
 (0)