change loading libry
This commit is contained in:
@@ -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 = ``;
|
||||
|
||||
Reference in New Issue
Block a user