This commit is contained in:
2023-03-13 12:51:38 +01:00
parent 4f329ba46a
commit 6e60580f9d

View File

@@ -172,11 +172,13 @@ const btnSaveDisable = () => {
};
const refrescarImagen = () => {
console.log(listaStore.pb.authStore.model);
if (listaStore.pb.authStore.model.avatar.length > 0) {
fuenteImagen.value = listaStore.pb.getFileUrl(
listaStore.pb.authStore.model,
listaStore.pb.authStore.model.avatar
);
fuenteImagen.value =
listaStore.pb.getFileUrl(
listaStore.pb.authStore.model,
listaStore.pb.authStore.model.avatar
) + "?thumb=100x100";
} else {
fuenteImagen.value = `https://cdn.quasar.dev/img/avatar.png`;
}