This commit is contained in:
parent
8e74f27512
commit
b5cf1354a7
|
|
@ -96,8 +96,9 @@
|
|||
// initTable();
|
||||
// });
|
||||
|
||||
layui.use('upload', function () {
|
||||
layui.use('layer', 'upload', function () {
|
||||
var upload = layui.upload;
|
||||
layer = layui.layer;
|
||||
// 执行上传功能
|
||||
var uploadInst = upload.render({
|
||||
elem: '#upload-btn',
|
||||
|
|
@ -106,7 +107,6 @@
|
|||
multiple: false,
|
||||
done: function (res) {
|
||||
// 上传完毕回调
|
||||
|
||||
if (res.code === 0) { // 假设返回数据中有code字段,0表示成功
|
||||
getUploadFile()
|
||||
layer.msg('上传成功');
|
||||
|
|
@ -145,6 +145,8 @@
|
|||
'</div>'
|
||||
);
|
||||
})
|
||||
} else {
|
||||
$('.password-book-list').empty()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue