From 81b6ade3f99966cd7250ae4f076b3218d48adf0c Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 1 May 2024 17:57:14 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20dialog?= =?UTF-8?q?=20=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A=E0=B8=B5=E0=B8=A2?= =?UTF-8?q?=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7=E0=B8=B1=E0=B8=95?= =?UTF-8?q?=E0=B8=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dialogs/PopupPersonalNew.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/Dialogs/PopupPersonalNew.vue b/src/components/Dialogs/PopupPersonalNew.vue index fd17e96a4..d9664e4cb 100644 --- a/src/components/Dialogs/PopupPersonalNew.vue +++ b/src/components/Dialogs/PopupPersonalNew.vue @@ -171,11 +171,11 @@ watch( () => props.modal, async () => { modal.value = props.modal ? props.modal : false; - modal.value && - props.id && - (await fetchInformation(props.id), await fetchProfileGov(props.id)), + if (modal.value) { + props.id && (fetchInformation(props.id), fetchProfileGov(props.id)); (fileName.value = `profile-${props.id}`), - await fetchProfile(props.id as string); + fetchProfile(props.id as string); + } } ); @@ -192,9 +192,8 @@ async function fetchProfile(id: string) { .then(async (res) => { avatar.avatar = res.data.downloadUrl; }) - .catch(() => {}) .finally(() => { - hideLoader(); + statusLoad.value.val = true; }); }