diff --git a/src/main.jsx b/src/main.jsx index fc289a3..4a058bf 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -53,7 +53,7 @@ const router = createBrowserRouter([ ReactDOM.createRoot(document.getElementById('root')).render( // - +
Loading...
} />
diff --git a/src/views/AccountProfile.jsx b/src/views/AccountProfile.jsx index de624a0..41fda6d 100644 --- a/src/views/AccountProfile.jsx +++ b/src/views/AccountProfile.jsx @@ -1,8 +1,10 @@ import { useEffect } from 'react' import { - Row, Col, Space, Descriptions, Avatar, Radio + Row, Col, Space, Descriptions, Avatar, Radio, Tag } from 'antd' - +import { + UserOutlined +} from '@ant-design/icons' import { useAuthContext } from '@/stores/AuthContext' function AccountProfile() { @@ -12,24 +14,16 @@ function AccountProfile() { // 测试错误捕获: // throw new Error('💥 CABOOM 💥') }, []) - + return ( - {loginUser.username}​ + {loginUser.username.substring(1)}{loginUser.username}​ - {loginUser.accountName} - + {loginUser.accountList?.map(a => { return ( + } bordered={false}>{a} + )})} {loginUser.mobile} {loginUser.email} diff --git a/src/views/AuthApp.jsx b/src/views/AuthApp.jsx index f0c8e02..ef0e70c 100644 --- a/src/views/AuthApp.jsx +++ b/src/views/AuthApp.jsx @@ -90,7 +90,7 @@ function AuthApp() { trigger={['click']} > e.preventDefault()} style={{ color: colorPrimary }}> - 廖一军 + {loginUser.username.substring(1)}{loginUser.username} diff --git a/src/views/OrderFollow.jsx b/src/views/OrderFollow.jsx index be7da49..71ff46e 100644 --- a/src/views/OrderFollow.jsx +++ b/src/views/OrderFollow.jsx @@ -1,16 +1,6 @@ import { - App, - Badge, - Button, - DatePicker, - Divider, - Flex, Form, - Input, - Radio, Row, Col, Select, - Space, - Switch, - Table, - Tag + App, Badge, Button, DatePicker, Divider, Flex, Form, Input, + Radio, Row, Col, Select, Space, Switch, Table, Tag } from 'antd' import { memo, useCallback, useEffect, useState } from 'react' import { NavLink } from 'react-router-dom' @@ -56,104 +46,99 @@ const AdvanceSearchForm = memo(function ({ onSubmit }) { return (
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + +