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}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/* {loginUser.email} */}
+ 邮箱}
+ dataSource={[
+ loginUser.email,
+ 'christyluo@chinahighlights.com',
+ 'christyluo@chinahighlights.net',
+ 'christyluo@asiahighlights.com',
+ 'christyluo@asiahighlights.net',
+ 'christyluo@globalhighlights.com',
+ 'christyluo@globalhighlights.net',
+ 'christyluo@163.com',
+ ]}
+ renderItem={(item) => {item}}
+ />
+
+
+
+ }
+ title='登录成功'
+ extra={}
+ />
+
+
+ >
)
}
diff --git a/src/views/dingding/Login.jsx b/src/views/dingding/Login.jsx
index 193ee26..e6ccfb7 100644
--- a/src/views/dingding/Login.jsx
+++ b/src/views/dingding/Login.jsx
@@ -19,7 +19,7 @@ function Login() {
const [errorMsg, setErrorMsg] = useState('')
if (dd.env.platform === 'notInDingTalk') {
- window.location =redirectUrl
+ window.location = redirectUrl
} else {
dd.requestAuthCode({
clientId: 'dingwgdx6emlxr3fcrg8',
@@ -33,7 +33,7 @@ function Login() {
fail: (error) => {
setErrorMsg(JSON.stringify(error))
},
- complete: () => {}
+ complete: () => {},
})
}