File tree 1 file changed +4
-0
lines changed
ui/src/views/user-manage/component
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 37
37
</template >
38
38
<script setup lang="ts">
39
39
import { ref , reactive , watch } from ' vue'
40
+ import useStore from ' @/stores'
40
41
import type { FormInstance , FormRules } from ' element-plus'
41
42
import type { ResetPasswordRequest } from ' @/api/type/user'
42
43
import userApi from ' @/api/user-manage'
43
44
import { MsgSuccess } from ' @/utils/message'
44
45
45
46
const emit = defineEmits ([' refresh' ])
46
47
48
+ const { user } = useStore ()
49
+
47
50
const userFormRef = ref ()
48
51
const userForm = ref <any >({
49
52
password: ' ' ,
@@ -113,6 +116,7 @@ const submit = async (formEl: FormInstance | undefined) => {
113
116
if (valid ) {
114
117
userApi .putUserManagePassword (userId .value , userForm .value , loading ).then ((res ) => {
115
118
emit (' refresh' )
119
+ user .profile ()
116
120
MsgSuccess (' 修改用户密码成功' )
117
121
dialogVisible .value = false
118
122
})
You can’t perform that action at this time.
0 commit comments