Explorar o código

修改密码不显示旧密码

zhongxiaoyu hai 1 ano
pai
achega
b527167275
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/views/newUserManagement/index.vue

+ 3 - 1
src/views/newUserManagement/index.vue

@@ -498,7 +498,9 @@ export default {
       this.dataType = 'edit'
       this.dataTitle = '修改密码'
       this.userId = row.user_id
-      this.ruleForm = _.cloneDeep(row)
+      const ruleForm = _.cloneDeep(row)
+      ruleForm.user_pwd = ''
+      this.ruleForm = ruleForm
     },
     async handleTableDel (row) {
       this.dataObj = row