You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by hu...@apache.org on 2022/03/31 05:59:57 UTC
[dolphinscheduler] branch dev updated: [Fix][UI Next][V1.0.0-Alpha] Fix the personal information did not return to edit the previous state. (#9301)
This is an automated email from the ASF dual-hosted git repository.
huajiang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 192ee99 [Fix][UI Next][V1.0.0-Alpha] Fix the personal information did not return to edit the previous state. (#9301)
192ee99 is described below
commit 192ee9987606593ff258012e7103f7f1f305dc0d
Author: songjianet <17...@qq.com>
AuthorDate: Thu Mar 31 13:59:46 2022 +0800
[Fix][UI Next][V1.0.0-Alpha] Fix the personal information did not return to edit the previous state. (#9301)
* [Fix][UI Next][V1.0.0-Alpha] Fix the personal information did not return to edit the previous state.
---
dolphinscheduler-ui-next/src/views/profile/index.tsx | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dolphinscheduler-ui-next/src/views/profile/index.tsx b/dolphinscheduler-ui-next/src/views/profile/index.tsx
index 3312049..c17dbb2 100644
--- a/dolphinscheduler-ui-next/src/views/profile/index.tsx
+++ b/dolphinscheduler-ui-next/src/views/profile/index.tsx
@@ -24,10 +24,13 @@ import Card from '@/components/card'
import Modal from '@/components/modal'
import Info from './components/info'
import utils from '@/utils'
+import { useUserStore } from '@/store/user/user'
+import type { UserInfoRes } from '@/service/modules/users/types'
const profile = defineComponent({
name: 'profile',
setup() {
+ const userInfo = useUserStore().userInfo as UserInfoRes
const showModalRef = ref(false)
const { state, t } = useForm()
const { handleUpdate } = useUpdate(state)
@@ -39,6 +42,9 @@ const profile = defineComponent({
const onCancel = () => {
showModalRef.value = false
+ state.profileForm.email = userInfo.email
+ state.profileForm.phone = userInfo.phone
+ state.profileForm.username = userInfo.userName
}
const onConfirm = async () => {