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