diff --git a/.prettierrc b/.prettierrc index dda75ab..15c9faa 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,5 +4,14 @@ "printWidth": 80, "tabWidth": 2, "useTabs": false, - "semi": false + "semi": false, + "quoteProps": "as-needed", + "jsxSingleQuote": true, + "bracketSpacing": true, + "jsxBracketSameLine": true, + "arrowParens": "always", + "requirePragma": false, + "insertPragma": false, + "proseWrap": "preserve", + "htmlWhitespaceSensitivity": "ignore", } \ No newline at end of file diff --git a/doc/界面原型.bmpr b/doc/界面原型.bmpr index 3e8127a..48d97b7 100644 Binary files a/doc/界面原型.bmpr and b/doc/界面原型.bmpr differ diff --git a/src/views/accounts/Profile.jsx b/src/views/accounts/Profile.jsx index 98c3b80..9b337ef 100644 --- a/src/views/accounts/Profile.jsx +++ b/src/views/accounts/Profile.jsx @@ -1,15 +1,23 @@ import { useEffect } from 'react' import { - Row, Col, Space, Descriptions, Avatar, Tag, FloatButton, App + Row, + Col, + Space, + Descriptions, + Avatar, + Tag, + Divider, + List, + Result, + Button, + Image, + Select, } from 'antd' -import { UserOutlined, BugOutlined } from '@ant-design/icons' +import { UserOutlined, SmileOutlined } from '@ant-design/icons' import useAuthStore from '@/stores/AuthStore' function Profile() { - - const { message } = App.useApp() const loginUser = useAuthStore((state) => state.loginUser) - const copyUserSession = useAuthStore((state) => state.copyUserSession) useEffect(() => { // 测试错误捕获: @@ -17,24 +25,111 @@ function Profile() { }, []) return ( - - - } onClick={() => { - message.success('复制成功,请粘贴给开发人员,谢谢😀') - copyUserSession() - }} /> - - {loginUser.username.substring(1)}{loginUser.username} - - {loginUser.accountList?.map(a => { return ( - } bordered={false}>{a.OPI_Code} - )})} - - {loginUser.mobile} - {loginUser.email} - - - + <> + + + + + + + {loginUser.username.substring(1)} + + {loginUser.username} + + + + {loginUser.accountList?.map((a) => { + return ( + } + bordered={false}> + {a.OPI_Code} + + ) + })} + + + {loginUser.mobile} + + + + +