We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b91b37b commit 2951fedCopy full SHA for 2951fed
1 file changed
web/src/layouts/default.tsx
@@ -10,7 +10,7 @@ interface DefaultLayoutProps {
10
11
export default function DefaultLayout({ children }: DefaultLayoutProps) {
12
const { pathname } = useLocation();
13
- const isSimpleLayout = pathname === '/login' || pathname === '/oauth-error' || pathname === '/setup-guide';
+ const isSimpleLayout = pathname.replace(/\/$/, '') === '/login' || pathname.replace(/\/$/, '') === '/oauth-error' || pathname.replace(/\/$/, '') === '/setup-guide';
14
15
return isSimpleLayout ? (
16
// 登录页面和错误页面:简洁布局,无导航栏
0 commit comments