|
|
|
@ -1,18 +1,17 @@
|
|
|
|
|
import { useEffect } from 'react';
|
|
|
|
|
import { Outlet, Link, useHref, useNavigate, NavLink } from 'react-router-dom'
|
|
|
|
|
import { Layout, Menu, ConfigProvider, theme, Empty, Row, Col, Avatar, Dropdown, Space, Typography, App as AntApp } from 'antd'
|
|
|
|
|
import { DownOutlined } from '@ant-design/icons'
|
|
|
|
|
import ErrorBoundary from '@/components/ErrorBoundary'
|
|
|
|
|
import zhLocale from 'antd/locale/zh_CN'
|
|
|
|
|
import { useThemeContext } from '@/stores/ThemeContext'
|
|
|
|
|
import { useAuthContext } from '@/stores/AuthContext'
|
|
|
|
|
import useConversationStore from '@/stores/ConversationStore'
|
|
|
|
|
import useAuthStore from '@/stores/AuthStore'
|
|
|
|
|
import useConversationStore from '@/stores/ConversationStore'
|
|
|
|
|
import { useThemeContext } from '@/stores/ThemeContext'
|
|
|
|
|
import { DownOutlined } from '@ant-design/icons'
|
|
|
|
|
import { App as AntApp, Avatar, Col, ConfigProvider, Dropdown, Empty, Layout, Menu, Row, Space, Typography, theme } from 'antd'
|
|
|
|
|
import zhLocale from 'antd/locale/zh_CN'
|
|
|
|
|
import 'dayjs/locale/zh-cn'
|
|
|
|
|
import { useEffect } from 'react'
|
|
|
|
|
import { Link, NavLink, Outlet, useHref, useNavigate } from 'react-router-dom'
|
|
|
|
|
|
|
|
|
|
import 'react-chat-elements/dist/main.css'
|
|
|
|
|
import '@/assets/App.css'
|
|
|
|
|
import AppLogo from '@/assets/logo-gh.png'
|
|
|
|
|
import 'react-chat-elements/dist/main.css'
|
|
|
|
|
|
|
|
|
|
const { Header, Footer, Content } = Layout
|
|
|
|
|
const { Title } = Typography
|
|
|
|
@ -112,9 +111,6 @@ function AuthApp() {
|
|
|
|
|
>
|
|
|
|
|
<a onClick={(e) => e.preventDefault()} style={{ color: colorPrimary }}>
|
|
|
|
|
<Space><Avatar
|
|
|
|
|
style={{
|
|
|
|
|
backgroundColor: colorPrimary,
|
|
|
|
|
}}
|
|
|
|
|
src={loginUser.avatarUrl}>{loginUser?.username?.substring(1)}</Avatar>{loginUser.username}<DownOutlined /></Space>
|
|
|
|
|
</a>
|
|
|
|
|
</Dropdown>
|
|
|
|
|