import { Outlet, Link, useHref, NavLink } from 'react-router-dom' import { useRef, useEffect, useState } from 'react' import { Layout, Menu, ConfigProvider, theme, Empty, Row, Col, Dropdown, Space, Typography, Result, Select, App as AntApp } from 'antd' import { DownOutlined } from "@ant-design/icons"; import ErrorBoundary from '@/components/ErrorBoundary'; import zhLocale from 'antd/locale/zh_CN'; import dayjs from 'dayjs'; import 'dayjs/locale/zh-cn'; import 'react-chat-elements/dist/main.css' import '@/assets/App.css' import AppLogo from '@/assets/logo-gh.png' import { isEmpty } from '@/utils/commons' const { Header, Footer, Content } = Layout const { Title } = Typography function App() { const href = useHref() //const shouldBeLogin = (isEmpty(userId) || isEmpty(website)) && (href.indexOf('/authorise/') == -1) let defaultPath = 'follow' if (href !== '/') { const splitPath = href.split('/') defaultPath = href } const { token: { colorBgContainer }, } = theme.useToken() function globalEmpty() { return ( ) } function renderLogin() { return ( ) } function renderLayout() { return (
App logo 聊天式销售平台 订单跟踪 }, { key: '/s/order/chat', label: 销售聊天 }, { key: '/s/chat/history', label: 聊天历史 }, { key: '/s/sales/management', label: 销售管理 } ]} /> 个人资料, key: "1", }, { type: "divider", }, { label: 退出, key: "3", }, ] }} trigger={['click']} > e.preventDefault()}> 廖一军
桂林海纳国际旅行社有限公司
) } return ( {renderLayout()} ) } export default App