diff --git a/src/api/system/user.js b/src/api/system/user.js index fbf8ca8..162f7ae 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -39,7 +39,7 @@ export function updateUser(data) { // 删除用户 export function delUser(data) { return request({ - url: '/smartArchives/system/user/delUser', + url: '/smartArchives/system/user/del', method: 'post', data }) diff --git a/src/views/system/user/profile/userForm.vue b/src/views/system/user/profile/userForm.vue index c19d7db..c0cbbee 100644 --- a/src/views/system/user/profile/userForm.vue +++ b/src/views/system/user/profile/userForm.vue @@ -126,7 +126,7 @@ export default { if ((this.isAdd === 'edit' || this.isAdd === 'detail') && this.rowData) { // 编辑模式:填充表单数据 this.form = { - id: this.rowData.id || null, + userId: this.rowData.userId || null, userName: this.rowData.userName || undefined, nickName: this.rowData.nickName || undefined, phonenumber: this.rowData.phonenumberDes || null,