更新
This commit is contained in:
parent
93390e2e89
commit
12c758a1b2
@ -469,8 +469,8 @@
|
|||||||
acceptMime: 'image/*',
|
acceptMime: 'image/*',
|
||||||
done: function (res) {
|
done: function (res) {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
$('#uploadPreview').removeClass('layui-hide').find('img').attr('src', res.data.url);
|
$('#uploadPreview').removeClass('layui-hide').find('img').attr('src', res.data.data);
|
||||||
$('#imageInput').val(res.data.url);
|
$('#imageInput').val(res.data.data);
|
||||||
layer.msg('上传成功');
|
layer.msg('上传成功');
|
||||||
} else {
|
} else {
|
||||||
layer.msg('上传失败');
|
layer.msg('上传失败');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user