瀏覽代碼

用户新增/修改

luojun 2 年之前
父節點
當前提交
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;