上传头像bug修复

This commit is contained in:
hdm 2022-07-12 18:57:25 +08:00
parent ebd3af2cdd
commit c17af94f1c

View File

@ -212,7 +212,7 @@
layer.msg(res.msg); layer.msg(res.msg);
if (res.code == 0) { if (res.code == 0) {
//上传成功 //上传成功
$('#demo1 input').attr('value', res.data.id); $('#demo1 input').attr('value', res.data.filepath);
$('#demo1 img').attr('src', res.data.filepath); $('#demo1 img').attr('src', res.data.filepath);
} }
} }