This commit is contained in:
BianLzhaoMin 2025-05-23 16:24:13 +08:00
parent 946f9f41ec
commit 8e74f27512
1 changed files with 11 additions and 8 deletions

View File

@ -131,9 +131,9 @@
fileList = res.obj
if (fileList.length === 3) {
$('#upload-btn').attr('disabled', true)
$('#upload-btn').hide()
} else {
$('#upload-btn').attr('disabled', false)
$('#upload-btn').show()
}
if (res.obj && res.obj.length > 0) {
$('.password-book-list').empty()
@ -153,13 +153,16 @@
getUploadFile()
// 删除文件
function deleteFile() {
console.log('删除', $(this).data('id'))
function deleteFile(id) {
$.ajax({
url: ctxPath + '/upload/delFile',
type: 'POST',
data: { id },
success: function (res) {
getUploadFile()
}
})
}
</script>
</body>