This commit is contained in:
archer
2023-07-01 13:09:02 +08:00
parent 4c54e1821b
commit 9bdd5f522d
85 changed files with 4738 additions and 1236 deletions

View File

@@ -14,7 +14,8 @@ import { getUnreadCount } from '@/api/user';
const pcUnShowLayoutRoute: Record<string, boolean> = {
'/': true,
'/login': true,
'/chat/share': true
'/chat/share': true,
'/app/edit': true
};
const phoneUnShowLayoutRoute: Record<string, boolean> = {
'/': true,
@@ -60,10 +61,7 @@ const Layout = ({ children }: { children: JSX.Element }) => {
return (
<>
<Box
h={'100%'}
bgGradient={'linear(to-t,rgba(173, 206, 255, 0.05) 0%, rgba(173, 206, 255, 0.12) 100%)'}
>
<Box h={'100%'} bg={'#F3F4F5E0'}>
<Box h={'100%'} display={['none', 'block']}>
{pcUnShowLayoutRoute[router.pathname] ? (
<Auth>{children}</Auth>