Browse Source

[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.
3.0.0/version-upgrade
songjianet 3 years ago committed by GitHub
parent
commit
192ee99876
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-ui-next/src/views/profile/index.tsx

6
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 () => {

Loading…
Cancel
Save