2024-12-11 16:11:27 +08:00
|
|
|
import HeaderBar from './HeaderBar.js';
|
|
|
|
|
import { Layout } from '@douyinfe/semi-ui';
|
|
|
|
|
import SiderBar from './SiderBar.js';
|
2025-06-04 00:42:06 +08:00
|
|
|
import App from '../../App.js';
|
2024-12-11 16:11:27 +08:00
|
|
|
import FooterBar from './Footer.js';
|
|
|
|
|
import { ToastContainer } from 'react-toastify';
|
📱 refactor(web): remove legacy isMobile util and migrate to useIsMobile hook
BREAKING CHANGE:
helpers/utils.js no longer exports `isMobile()`.
Any external code that relied on this function must switch to the `useIsMobile` React hook.
Summary
-------
1. Deleted the obsolete `isMobile()` function from helpers/utils.js.
2. Introduced `MOBILE_BREAKPOINT` constant and `matchMedia`-based detection for non-React contexts.
3. Reworked toast positioning logic in utils.js to rely on `matchMedia`.
4. Updated render.js:
• Removed isMobile import.
• Added MOBILE_BREAKPOINT detection in `truncateText`.
5. Migrated every page/component to the `useIsMobile` hook:
• Layout: HeaderBar, PageLayout, SiderBar
• Pages: Home, Detail, Playground, User (Add/Edit), Token, Channel, Redemption, Ratio Sync
• Components: ChannelsTable, ChannelSelectorModal, ConflictConfirmModal
6. Purged all remaining `isMobile()` calls and legacy imports.
7. Added missing `const isMobile = useIsMobile()` declarations where required.
Benefits
--------
• Unifies mobile detection with a React-friendly hook.
• Eliminates duplicated logic and improves maintainability.
• Keeps non-React helpers lightweight by using `matchMedia` directly.
2025-07-16 02:54:58 +08:00
|
|
|
import React, { useContext, useEffect, useState } from 'react';
|
|
|
|
|
import { useIsMobile } from '../../hooks/useIsMobile.js';
|
|
|
|
|
import { useSidebarCollapsed } from '../../hooks/useSidebarCollapsed.js';
|
2024-12-13 19:03:14 +08:00
|
|
|
import { useTranslation } from 'react-i18next';
|
2025-06-04 00:42:06 +08:00
|
|
|
import { API, getLogo, getSystemName, showError, setStatusData } from '../../helpers/index.js';
|
|
|
|
|
import { UserContext } from '../../context/User/index.js';
|
|
|
|
|
import { StatusContext } from '../../context/Status/index.js';
|
2025-05-30 19:24:17 +08:00
|
|
|
import { useLocation } from 'react-router-dom';
|
2025-06-25 15:26:51 +08:00
|
|
|
const { Sider, Content, Header } = Layout;
|
2024-12-11 16:11:27 +08:00
|
|
|
|
|
|
|
|
const PageLayout = () => {
|
2024-12-14 14:09:30 +08:00
|
|
|
const [userState, userDispatch] = useContext(UserContext);
|
|
|
|
|
const [statusState, statusDispatch] = useContext(StatusContext);
|
📱 refactor(web): remove legacy isMobile util and migrate to useIsMobile hook
BREAKING CHANGE:
helpers/utils.js no longer exports `isMobile()`.
Any external code that relied on this function must switch to the `useIsMobile` React hook.
Summary
-------
1. Deleted the obsolete `isMobile()` function from helpers/utils.js.
2. Introduced `MOBILE_BREAKPOINT` constant and `matchMedia`-based detection for non-React contexts.
3. Reworked toast positioning logic in utils.js to rely on `matchMedia`.
4. Updated render.js:
• Removed isMobile import.
• Added MOBILE_BREAKPOINT detection in `truncateText`.
5. Migrated every page/component to the `useIsMobile` hook:
• Layout: HeaderBar, PageLayout, SiderBar
• Pages: Home, Detail, Playground, User (Add/Edit), Token, Channel, Redemption, Ratio Sync
• Components: ChannelsTable, ChannelSelectorModal, ConflictConfirmModal
6. Purged all remaining `isMobile()` calls and legacy imports.
7. Added missing `const isMobile = useIsMobile()` declarations where required.
Benefits
--------
• Unifies mobile detection with a React-friendly hook.
• Eliminates duplicated logic and improves maintainability.
• Keeps non-React helpers lightweight by using `matchMedia` directly.
2025-07-16 02:54:58 +08:00
|
|
|
const isMobile = useIsMobile();
|
|
|
|
|
const [collapsed, , setCollapsed] = useSidebarCollapsed();
|
|
|
|
|
const [drawerOpen, setDrawerOpen] = useState(false);
|
2024-12-14 14:09:30 +08:00
|
|
|
const { i18n } = useTranslation();
|
2025-05-30 19:24:17 +08:00
|
|
|
const location = useLocation();
|
|
|
|
|
|
2025-06-02 04:16:48 +08:00
|
|
|
const shouldHideFooter = location.pathname === '/console/playground' || location.pathname.startsWith('/console/chat');
|
|
|
|
|
|
|
|
|
|
const shouldInnerPadding = location.pathname.includes('/console') &&
|
|
|
|
|
!location.pathname.startsWith('/console/chat') &&
|
|
|
|
|
location.pathname !== '/console/playground';
|
2024-12-14 14:09:30 +08:00
|
|
|
|
📱 refactor(web): remove legacy isMobile util and migrate to useIsMobile hook
BREAKING CHANGE:
helpers/utils.js no longer exports `isMobile()`.
Any external code that relied on this function must switch to the `useIsMobile` React hook.
Summary
-------
1. Deleted the obsolete `isMobile()` function from helpers/utils.js.
2. Introduced `MOBILE_BREAKPOINT` constant and `matchMedia`-based detection for non-React contexts.
3. Reworked toast positioning logic in utils.js to rely on `matchMedia`.
4. Updated render.js:
• Removed isMobile import.
• Added MOBILE_BREAKPOINT detection in `truncateText`.
5. Migrated every page/component to the `useIsMobile` hook:
• Layout: HeaderBar, PageLayout, SiderBar
• Pages: Home, Detail, Playground, User (Add/Edit), Token, Channel, Redemption, Ratio Sync
• Components: ChannelsTable, ChannelSelectorModal, ConflictConfirmModal
6. Purged all remaining `isMobile()` calls and legacy imports.
7. Added missing `const isMobile = useIsMobile()` declarations where required.
Benefits
--------
• Unifies mobile detection with a React-friendly hook.
• Eliminates duplicated logic and improves maintainability.
• Keeps non-React helpers lightweight by using `matchMedia` directly.
2025-07-16 02:54:58 +08:00
|
|
|
const isConsoleRoute = location.pathname.startsWith('/console');
|
|
|
|
|
const showSider = isConsoleRoute && (!isMobile || drawerOpen);
|
|
|
|
|
|
|
|
|
|
// Ensure sidebar not collapsed when opening drawer on mobile
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
if (isMobile && drawerOpen && collapsed) {
|
|
|
|
|
setCollapsed(false);
|
|
|
|
|
}
|
|
|
|
|
}, [isMobile, drawerOpen, collapsed, setCollapsed]);
|
|
|
|
|
|
2024-12-14 14:09:30 +08:00
|
|
|
const loadUser = () => {
|
|
|
|
|
let user = localStorage.getItem('user');
|
|
|
|
|
if (user) {
|
|
|
|
|
let data = JSON.parse(user);
|
|
|
|
|
userDispatch({ type: 'login', payload: data });
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const loadStatus = async () => {
|
|
|
|
|
try {
|
|
|
|
|
const res = await API.get('/api/status');
|
|
|
|
|
const { success, data } = res.data;
|
|
|
|
|
if (success) {
|
|
|
|
|
statusDispatch({ type: 'set', payload: data });
|
|
|
|
|
setStatusData(data);
|
|
|
|
|
} else {
|
|
|
|
|
showError('Unable to connect to server');
|
|
|
|
|
}
|
|
|
|
|
} catch (error) {
|
|
|
|
|
showError('Failed to load status');
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
loadUser();
|
|
|
|
|
loadStatus().catch(console.error);
|
|
|
|
|
let systemName = getSystemName();
|
|
|
|
|
if (systemName) {
|
|
|
|
|
document.title = systemName;
|
|
|
|
|
}
|
|
|
|
|
let logo = getLogo();
|
|
|
|
|
if (logo) {
|
|
|
|
|
let linkElement = document.querySelector("link[rel~='icon']");
|
|
|
|
|
if (linkElement) {
|
|
|
|
|
linkElement.href = logo;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 从localStorage获取上次使用的语言
|
|
|
|
|
const savedLang = localStorage.getItem('i18nextLng');
|
|
|
|
|
if (savedLang) {
|
|
|
|
|
i18n.changeLanguage(savedLang);
|
|
|
|
|
}
|
|
|
|
|
}, [i18n]);
|
2024-12-11 16:11:27 +08:00
|
|
|
|
|
|
|
|
return (
|
2025-04-04 12:00:38 +08:00
|
|
|
<Layout
|
|
|
|
|
style={{
|
|
|
|
|
height: '100vh',
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
📱 refactor(web): remove legacy isMobile util and migrate to useIsMobile hook
BREAKING CHANGE:
helpers/utils.js no longer exports `isMobile()`.
Any external code that relied on this function must switch to the `useIsMobile` React hook.
Summary
-------
1. Deleted the obsolete `isMobile()` function from helpers/utils.js.
2. Introduced `MOBILE_BREAKPOINT` constant and `matchMedia`-based detection for non-React contexts.
3. Reworked toast positioning logic in utils.js to rely on `matchMedia`.
4. Updated render.js:
• Removed isMobile import.
• Added MOBILE_BREAKPOINT detection in `truncateText`.
5. Migrated every page/component to the `useIsMobile` hook:
• Layout: HeaderBar, PageLayout, SiderBar
• Pages: Home, Detail, Playground, User (Add/Edit), Token, Channel, Redemption, Ratio Sync
• Components: ChannelsTable, ChannelSelectorModal, ConflictConfirmModal
6. Purged all remaining `isMobile()` calls and legacy imports.
7. Added missing `const isMobile = useIsMobile()` declarations where required.
Benefits
--------
• Unifies mobile detection with a React-friendly hook.
• Eliminates duplicated logic and improves maintainability.
• Keeps non-React helpers lightweight by using `matchMedia` directly.
2025-07-16 02:54:58 +08:00
|
|
|
overflow: isMobile ? 'visible' : 'hidden',
|
2025-04-04 12:00:38 +08:00
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<Header
|
|
|
|
|
style={{
|
|
|
|
|
padding: 0,
|
|
|
|
|
height: 'auto',
|
|
|
|
|
lineHeight: 'normal',
|
2025-05-26 22:01:57 +08:00
|
|
|
position: 'fixed',
|
2025-04-04 12:00:38 +08:00
|
|
|
width: '100%',
|
|
|
|
|
top: 0,
|
|
|
|
|
zIndex: 100,
|
|
|
|
|
}}
|
|
|
|
|
>
|
📱 refactor(web): remove legacy isMobile util and migrate to useIsMobile hook
BREAKING CHANGE:
helpers/utils.js no longer exports `isMobile()`.
Any external code that relied on this function must switch to the `useIsMobile` React hook.
Summary
-------
1. Deleted the obsolete `isMobile()` function from helpers/utils.js.
2. Introduced `MOBILE_BREAKPOINT` constant and `matchMedia`-based detection for non-React contexts.
3. Reworked toast positioning logic in utils.js to rely on `matchMedia`.
4. Updated render.js:
• Removed isMobile import.
• Added MOBILE_BREAKPOINT detection in `truncateText`.
5. Migrated every page/component to the `useIsMobile` hook:
• Layout: HeaderBar, PageLayout, SiderBar
• Pages: Home, Detail, Playground, User (Add/Edit), Token, Channel, Redemption, Ratio Sync
• Components: ChannelsTable, ChannelSelectorModal, ConflictConfirmModal
6. Purged all remaining `isMobile()` calls and legacy imports.
7. Added missing `const isMobile = useIsMobile()` declarations where required.
Benefits
--------
• Unifies mobile detection with a React-friendly hook.
• Eliminates duplicated logic and improves maintainability.
• Keeps non-React helpers lightweight by using `matchMedia` directly.
2025-07-16 02:54:58 +08:00
|
|
|
<HeaderBar onMobileMenuToggle={() => setDrawerOpen(prev => !prev)} drawerOpen={drawerOpen} />
|
2024-12-11 16:11:27 +08:00
|
|
|
</Header>
|
2025-04-04 12:00:38 +08:00
|
|
|
<Layout
|
|
|
|
|
style={{
|
📱 refactor(web): remove legacy isMobile util and migrate to useIsMobile hook
BREAKING CHANGE:
helpers/utils.js no longer exports `isMobile()`.
Any external code that relied on this function must switch to the `useIsMobile` React hook.
Summary
-------
1. Deleted the obsolete `isMobile()` function from helpers/utils.js.
2. Introduced `MOBILE_BREAKPOINT` constant and `matchMedia`-based detection for non-React contexts.
3. Reworked toast positioning logic in utils.js to rely on `matchMedia`.
4. Updated render.js:
• Removed isMobile import.
• Added MOBILE_BREAKPOINT detection in `truncateText`.
5. Migrated every page/component to the `useIsMobile` hook:
• Layout: HeaderBar, PageLayout, SiderBar
• Pages: Home, Detail, Playground, User (Add/Edit), Token, Channel, Redemption, Ratio Sync
• Components: ChannelsTable, ChannelSelectorModal, ConflictConfirmModal
6. Purged all remaining `isMobile()` calls and legacy imports.
7. Added missing `const isMobile = useIsMobile()` declarations where required.
Benefits
--------
• Unifies mobile detection with a React-friendly hook.
• Eliminates duplicated logic and improves maintainability.
• Keeps non-React helpers lightweight by using `matchMedia` directly.
2025-07-16 02:54:58 +08:00
|
|
|
overflow: isMobile ? 'visible' : 'auto',
|
2025-04-04 12:00:38 +08:00
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
}}
|
|
|
|
|
>
|
📱 refactor(web): remove legacy isMobile util and migrate to useIsMobile hook
BREAKING CHANGE:
helpers/utils.js no longer exports `isMobile()`.
Any external code that relied on this function must switch to the `useIsMobile` React hook.
Summary
-------
1. Deleted the obsolete `isMobile()` function from helpers/utils.js.
2. Introduced `MOBILE_BREAKPOINT` constant and `matchMedia`-based detection for non-React contexts.
3. Reworked toast positioning logic in utils.js to rely on `matchMedia`.
4. Updated render.js:
• Removed isMobile import.
• Added MOBILE_BREAKPOINT detection in `truncateText`.
5. Migrated every page/component to the `useIsMobile` hook:
• Layout: HeaderBar, PageLayout, SiderBar
• Pages: Home, Detail, Playground, User (Add/Edit), Token, Channel, Redemption, Ratio Sync
• Components: ChannelsTable, ChannelSelectorModal, ConflictConfirmModal
6. Purged all remaining `isMobile()` calls and legacy imports.
7. Added missing `const isMobile = useIsMobile()` declarations where required.
Benefits
--------
• Unifies mobile detection with a React-friendly hook.
• Eliminates duplicated logic and improves maintainability.
• Keeps non-React helpers lightweight by using `matchMedia` directly.
2025-07-16 02:54:58 +08:00
|
|
|
{showSider && (
|
2025-04-04 12:00:38 +08:00
|
|
|
<Sider
|
|
|
|
|
style={{
|
📱 refactor(web): remove legacy isMobile util and migrate to useIsMobile hook
BREAKING CHANGE:
helpers/utils.js no longer exports `isMobile()`.
Any external code that relied on this function must switch to the `useIsMobile` React hook.
Summary
-------
1. Deleted the obsolete `isMobile()` function from helpers/utils.js.
2. Introduced `MOBILE_BREAKPOINT` constant and `matchMedia`-based detection for non-React contexts.
3. Reworked toast positioning logic in utils.js to rely on `matchMedia`.
4. Updated render.js:
• Removed isMobile import.
• Added MOBILE_BREAKPOINT detection in `truncateText`.
5. Migrated every page/component to the `useIsMobile` hook:
• Layout: HeaderBar, PageLayout, SiderBar
• Pages: Home, Detail, Playground, User (Add/Edit), Token, Channel, Redemption, Ratio Sync
• Components: ChannelsTable, ChannelSelectorModal, ConflictConfirmModal
6. Purged all remaining `isMobile()` calls and legacy imports.
7. Added missing `const isMobile = useIsMobile()` declarations where required.
Benefits
--------
• Unifies mobile detection with a React-friendly hook.
• Eliminates duplicated logic and improves maintainability.
• Keeps non-React helpers lightweight by using `matchMedia` directly.
2025-07-16 02:54:58 +08:00
|
|
|
position: isMobile ? 'fixed' : 'fixed',
|
2025-04-04 12:00:38 +08:00
|
|
|
left: 0,
|
2025-06-02 04:16:48 +08:00
|
|
|
top: '64px',
|
2025-04-04 12:00:38 +08:00
|
|
|
zIndex: 99,
|
|
|
|
|
border: 'none',
|
|
|
|
|
paddingRight: '0',
|
2025-06-02 04:16:48 +08:00
|
|
|
height: 'calc(100vh - 64px)',
|
📱 refactor(web): remove legacy isMobile util and migrate to useIsMobile hook
BREAKING CHANGE:
helpers/utils.js no longer exports `isMobile()`.
Any external code that relied on this function must switch to the `useIsMobile` React hook.
Summary
-------
1. Deleted the obsolete `isMobile()` function from helpers/utils.js.
2. Introduced `MOBILE_BREAKPOINT` constant and `matchMedia`-based detection for non-React contexts.
3. Reworked toast positioning logic in utils.js to rely on `matchMedia`.
4. Updated render.js:
• Removed isMobile import.
• Added MOBILE_BREAKPOINT detection in `truncateText`.
5. Migrated every page/component to the `useIsMobile` hook:
• Layout: HeaderBar, PageLayout, SiderBar
• Pages: Home, Detail, Playground, User (Add/Edit), Token, Channel, Redemption, Ratio Sync
• Components: ChannelsTable, ChannelSelectorModal, ConflictConfirmModal
6. Purged all remaining `isMobile()` calls and legacy imports.
7. Added missing `const isMobile = useIsMobile()` declarations where required.
Benefits
--------
• Unifies mobile detection with a React-friendly hook.
• Eliminates duplicated logic and improves maintainability.
• Keeps non-React helpers lightweight by using `matchMedia` directly.
2025-07-16 02:54:58 +08:00
|
|
|
width: 'var(--sidebar-current-width)',
|
2025-04-04 12:00:38 +08:00
|
|
|
}}
|
|
|
|
|
>
|
2025-07-16 03:52:40 +08:00
|
|
|
{/* 在移动端点击菜单后关闭侧边栏 */}
|
|
|
|
|
<SiderBar onNavigate={() => { if (isMobile) setDrawerOpen(false); }} />
|
2025-03-10 03:25:02 +08:00
|
|
|
</Sider>
|
|
|
|
|
)}
|
2025-04-04 12:00:38 +08:00
|
|
|
<Layout
|
|
|
|
|
style={{
|
📱 refactor(web): remove legacy isMobile util and migrate to useIsMobile hook
BREAKING CHANGE:
helpers/utils.js no longer exports `isMobile()`.
Any external code that relied on this function must switch to the `useIsMobile` React hook.
Summary
-------
1. Deleted the obsolete `isMobile()` function from helpers/utils.js.
2. Introduced `MOBILE_BREAKPOINT` constant and `matchMedia`-based detection for non-React contexts.
3. Reworked toast positioning logic in utils.js to rely on `matchMedia`.
4. Updated render.js:
• Removed isMobile import.
• Added MOBILE_BREAKPOINT detection in `truncateText`.
5. Migrated every page/component to the `useIsMobile` hook:
• Layout: HeaderBar, PageLayout, SiderBar
• Pages: Home, Detail, Playground, User (Add/Edit), Token, Channel, Redemption, Ratio Sync
• Components: ChannelsTable, ChannelSelectorModal, ConflictConfirmModal
6. Purged all remaining `isMobile()` calls and legacy imports.
7. Added missing `const isMobile = useIsMobile()` declarations where required.
Benefits
--------
• Unifies mobile detection with a React-friendly hook.
• Eliminates duplicated logic and improves maintainability.
• Keeps non-React helpers lightweight by using `matchMedia` directly.
2025-07-16 02:54:58 +08:00
|
|
|
marginLeft: isMobile ? '0' : showSider ? 'var(--sidebar-current-width)' : '0',
|
2025-04-04 12:00:38 +08:00
|
|
|
flex: '1 1 auto',
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
}}
|
|
|
|
|
>
|
2024-12-11 16:11:27 +08:00
|
|
|
<Content
|
2025-04-04 12:00:38 +08:00
|
|
|
style={{
|
2025-03-10 19:01:56 +08:00
|
|
|
flex: '1 0 auto',
|
📱 refactor(web): remove legacy isMobile util and migrate to useIsMobile hook
BREAKING CHANGE:
helpers/utils.js no longer exports `isMobile()`.
Any external code that relied on this function must switch to the `useIsMobile` React hook.
Summary
-------
1. Deleted the obsolete `isMobile()` function from helpers/utils.js.
2. Introduced `MOBILE_BREAKPOINT` constant and `matchMedia`-based detection for non-React contexts.
3. Reworked toast positioning logic in utils.js to rely on `matchMedia`.
4. Updated render.js:
• Removed isMobile import.
• Added MOBILE_BREAKPOINT detection in `truncateText`.
5. Migrated every page/component to the `useIsMobile` hook:
• Layout: HeaderBar, PageLayout, SiderBar
• Pages: Home, Detail, Playground, User (Add/Edit), Token, Channel, Redemption, Ratio Sync
• Components: ChannelsTable, ChannelSelectorModal, ConflictConfirmModal
6. Purged all remaining `isMobile()` calls and legacy imports.
7. Added missing `const isMobile = useIsMobile()` declarations where required.
Benefits
--------
• Unifies mobile detection with a React-friendly hook.
• Eliminates duplicated logic and improves maintainability.
• Keeps non-React helpers lightweight by using `matchMedia` directly.
2025-07-16 02:54:58 +08:00
|
|
|
overflowY: isMobile ? 'visible' : 'hidden',
|
2025-03-10 15:49:32 +08:00
|
|
|
WebkitOverflowScrolling: 'touch',
|
📱 refactor(web): remove legacy isMobile util and migrate to useIsMobile hook
BREAKING CHANGE:
helpers/utils.js no longer exports `isMobile()`.
Any external code that relied on this function must switch to the `useIsMobile` React hook.
Summary
-------
1. Deleted the obsolete `isMobile()` function from helpers/utils.js.
2. Introduced `MOBILE_BREAKPOINT` constant and `matchMedia`-based detection for non-React contexts.
3. Reworked toast positioning logic in utils.js to rely on `matchMedia`.
4. Updated render.js:
• Removed isMobile import.
• Added MOBILE_BREAKPOINT detection in `truncateText`.
5. Migrated every page/component to the `useIsMobile` hook:
• Layout: HeaderBar, PageLayout, SiderBar
• Pages: Home, Detail, Playground, User (Add/Edit), Token, Channel, Redemption, Ratio Sync
• Components: ChannelsTable, ChannelSelectorModal, ConflictConfirmModal
6. Purged all remaining `isMobile()` calls and legacy imports.
7. Added missing `const isMobile = useIsMobile()` declarations where required.
Benefits
--------
• Unifies mobile detection with a React-friendly hook.
• Eliminates duplicated logic and improves maintainability.
• Keeps non-React helpers lightweight by using `matchMedia` directly.
2025-07-16 02:54:58 +08:00
|
|
|
padding: shouldInnerPadding ? (isMobile ? '5px' : '24px') : '0',
|
2025-03-10 19:01:56 +08:00
|
|
|
position: 'relative',
|
2025-03-10 03:25:02 +08:00
|
|
|
}}
|
2024-12-11 16:11:27 +08:00
|
|
|
>
|
|
|
|
|
<App />
|
|
|
|
|
</Content>
|
2025-06-02 04:16:48 +08:00
|
|
|
{!shouldHideFooter && (
|
2025-05-30 19:24:17 +08:00
|
|
|
<Layout.Footer
|
|
|
|
|
style={{
|
|
|
|
|
flex: '0 0 auto',
|
|
|
|
|
width: '100%',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<FooterBar />
|
|
|
|
|
</Layout.Footer>
|
|
|
|
|
)}
|
2024-12-11 16:11:27 +08:00
|
|
|
</Layout>
|
|
|
|
|
</Layout>
|
|
|
|
|
<ToastContainer />
|
|
|
|
|
</Layout>
|
2025-04-04 12:00:38 +08:00
|
|
|
);
|
|
|
|
|
};
|
2024-12-11 16:11:27 +08:00
|
|
|
|
2025-04-04 12:00:38 +08:00
|
|
|
export default PageLayout;
|