change loading libry

This commit is contained in:
2021-01-14 21:05:06 -06:00
parent ced0861cfb
commit 4b8defa41a
6 changed files with 66 additions and 15 deletions
+18
View File
@@ -197,6 +197,24 @@ export default {
if(pdf.files.length === 0) return this.faltaCampo("Pdf");
formData.append("type", 'addLibro');
formData.append("seccion", 'datos');
if(imagen.files[0].size > 1200000){
Swal.fire(
`EL tamaño de la Imagen es muy grande`,
'Por favor suba imagenes menores a 1MG',
'warning'
)
return;
}
if(pdf.files[0].size > 1200000){
Swal.fire(
`EL tamaño del PDF es muy grande`,
'Por favor suba PDFs menores a 1MG',
'warning'
)
return;
}
this.cargando = true;
let idLibro = null;
let textoFinal = ``;