Просмотр исходного кода

修改密码不显示旧密码

zhongxiaoyu 1 год назад
Родитель
Сommit
b527167275
1 измененных файлов с 3 добавлено и 1 удалено
  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