Skip to content

Commit

Permalink
fix: 修复第一次修改密码问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wangdan-fit2cloud committed Jul 30, 2024
1 parent db83988 commit 7b48599
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/src/views/user-manage/component/UserPwdDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,16 @@
</template>
<script setup lang="ts">
import { ref, reactive, watch } from 'vue'
import useStore from '@/stores'
import type { FormInstance, FormRules } from 'element-plus'
import type { ResetPasswordRequest } from '@/api/type/user'
import userApi from '@/api/user-manage'
import { MsgSuccess } from '@/utils/message'
const emit = defineEmits(['refresh'])
const { user } = useStore()
const userFormRef = ref()
const userForm = ref<any>({
password: '',
Expand Down Expand Up @@ -113,6 +116,7 @@ const submit = async (formEl: FormInstance | undefined) => {
if (valid) {
userApi.putUserManagePassword(userId.value, userForm.value, loading).then((res) => {
emit('refresh')
user.profile()
MsgSuccess('修改用户密码成功')
dialogVisible.value = false
})
Expand Down

0 comments on commit 7b48599

Please sign in to comment.