fix():用户回显

master
DongZeLiang 2024-12-26 14:21:04 +08:00
parent 9058468376
commit c1bbe1ab17
1 changed files with 2 additions and 2 deletions

View File

@ -502,7 +502,7 @@ function handleUpdate(row) {
const userId = row.userId || ids.value;
getUser(userId).then(response => {
console.log(response)
form.value = response.data;
form.value = response.data.sysUser;
form.value.nickName = response.data.sysUser.nickName;
form.value.email=response.data.sysUser.email;
form.value.phonenumber=response.data.sysUser.phonenumber;
@ -526,7 +526,7 @@ function handleUpdate(row) {
function submitForm() {
proxy.$refs["userRef"].validate(valid => {
if (valid) {
if (form.value.userId != undefined) {
if (form.value.userId !== undefined) {
updateUser(form.value).then(response => {
proxy.$modal.msgSuccess("修改成功");
open.value = false;