publishContent.router.tsx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import Icon, { DesktopOutlined } from '@ant-design/icons'
  2. import { AdminRouterItem } from "../../router";
  3. import WeCom from "./weCom/index";
  4. import WeGZH from "./weGZH/index";
  5. import WeComIcon from "@src/assets/images/publishContent/wxCom.svg?react";
  6. import WeGZHIcon from "@src/assets/images/publishContent/wxGzh.svg?react";
  7. import { Outlet } from "react-router-dom";
  8. const demoRoutes: AdminRouterItem[] = [
  9. {
  10. path: 'publishContent',
  11. element: <Outlet />,
  12. meta: {
  13. label: "发布内容管理",
  14. title: "发布内容管理",
  15. key: "/publishContent",
  16. icon: <DesktopOutlined />,
  17. },
  18. children: [
  19. {
  20. path: 'wegzh',
  21. element: <WeGZH />,
  22. meta: {
  23. label: "公众号",
  24. title: "公众号",
  25. key: "/publishContent/wegzh",
  26. icon: <Icon component={WeGZHIcon} className="!text-[20px]" />,
  27. }
  28. },
  29. {
  30. path: 'wecom',
  31. element: <WeCom />,
  32. meta: {
  33. label: "企微",
  34. title: "企微",
  35. key: "/publishContent/wecom",
  36. icon: <Icon component={WeComIcon} className="!text-[20px]"/>,
  37. }
  38. },
  39. ]
  40. }
  41. ]
  42. export default demoRoutes