import Icon, { DesktopOutlined } from '@ant-design/icons' import { AdminRouterItem } from "../../router"; import React, { Suspense } from 'react'; import WeComIcon from "@src/assets/images/publishContent/wxCom.svg?react"; import WeGZHIcon from "@src/assets/images/publishContent/wxGzh.svg?react"; import LogoIcon from "@src/assets/images/login/logo.svg?react"; import { Outlet } from "react-router-dom"; // Lazy load components const WeCom = React.lazy(() => import('./weCom/index')); const WeGZH = React.lazy(() => import('./weGZH/index')); // Loading fallback component // eslint-disable-next-line react-refresh/only-export-components const LazyLoadingFallback = () => (
加载中
); // Wrapper component with Suspense // eslint-disable-next-line react-refresh/only-export-components const LazyComponent = ({ Component }: { Component: React.ComponentType }) => ( }> ); const demoRoutes: AdminRouterItem[] = [ { path: 'publishContent', element: , meta: { label: "发布内容管理", title: "发布内容管理", key: "/publishContent", icon: , }, children: [ { path: 'wegzh', element: , meta: { label: "公众号", title: "公众号", key: "/publishContent/wegzh", icon: , } }, { path: 'wecom', element: , meta: { label: "企微", title: "企微", key: "/publishContent/wecom", icon: , } }, ] } ] export default demoRoutes