File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed 
ui/src/views/user-manage/component Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 3737</template >
3838<script  setup lang="ts">
3939import  { ref , reactive , watch  } from  ' vue' 
40+ import  useStore  from  ' @/stores' 
4041import  type  { FormInstance , FormRules  } from  ' element-plus' 
4142import  type  { ResetPasswordRequest  } from  ' @/api/type/user' 
4243import  userApi  from  ' @/api/user-manage' 
4344import  { MsgSuccess  } from  ' @/utils/message' 
4445
4546const =  defineEmits ([' refresh' 
4647
48+ const =  useStore ()
49+ 
4750const =  ref ()
4851const =  ref <any >({
4952  password: ' '  
@@ -113,6 +116,7 @@ const submit = async (formEl: FormInstance | undefined) => {
113116    if  (valid ) { 
114117      userApi .putUserManagePassword (userId .value , userForm .value , loading ).then ((res ) =>  { 
115118        emit (' refresh'  
119+         user .profile () 
116120        MsgSuccess (' 修改用户密码成功'  
117121        dialogVisible .value  =  false  
118122      }) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments