diff --git a/src/pages/IndexPage.vue b/src/pages/IndexPage.vue index 730b741..114ca06 100644 --- a/src/pages/IndexPage.vue +++ b/src/pages/IndexPage.vue @@ -22,7 +22,15 @@
- + import { ref, computed, onMounted } from "vue"; import { useListaStore } from "../stores/lista.js"; +import { useQuasar } from "quasar"; +const $q = useQuasar(); const listaStore = useListaStore(); const imagen = ref(null); @@ -172,7 +182,6 @@ const btnSaveDisable = () => { }; const refrescarImagen = () => { - console.log(listaStore.pb.authStore.model); if (listaStore.pb.authStore.model.avatar.length > 0) { fuenteImagen.value = listaStore.pb.getFileUrl( @@ -183,6 +192,14 @@ const refrescarImagen = () => { fuenteImagen.value = `https://cdn.quasar.dev/img/avatar.png`; } }; + +const noValidos = () => { + $q.dialog({ + type: "negative", + message: `Sólo se permiten archivos de imágenes de 5 MB como máximo`, + }); +}; + onMounted(() => { refrescarImagen(); });