luojun 2 лет назад
Родитель
Сommit
ea63128134
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/views/system/user/index.vue

+ 1 - 1
src/views/system/user/index.vue

@@ -670,7 +670,7 @@ export default {
     submitForm: function() {
       this.$refs["form"].validate(valid => {
         if (valid) {
-          if (this.form.userId != undefined) {
+          if (this.form.id != undefined) {
             updateUser(this.form).then(response => {
               this.$modal.msgSuccess("修改成功");
               this.open = false;