From bf84ecda8a0b69890adb89f342837badc0a7dc8c Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 24 May 2024 17:52:20 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20redilect?= =?UTF-8?q?=20Dialog=20profile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dialogs/PopupPersonalNew.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/Dialogs/PopupPersonalNew.vue b/src/components/Dialogs/PopupPersonalNew.vue index 109ebd3f9..70a35f1b9 100644 --- a/src/components/Dialogs/PopupPersonalNew.vue +++ b/src/components/Dialogs/PopupPersonalNew.vue @@ -20,7 +20,6 @@ const router = useRouter(); const $q = useQuasar(); const retireDate = ref(); const { showLoader, hideLoader, messageError, date2Thai } = mixin; -const fileName = ref(""); const empType = ref( route.name !== "appoint-employee-detail" ? "" : "-employee" ); @@ -111,7 +110,7 @@ async function fetchInformation(id: string) { avatar.position = data.position ? data.position : "-"; if (data.avatarName) { - fetchProfile(data.id as string,data.avatarName); + fetchProfile(data.id as string, data.avatarName); } }) .catch((err) => { @@ -156,7 +155,7 @@ async function fetchProfileGov(id: string) { } function redirecToRegistry() { - router.push(`/registry-new/${props.id}`); + router.push(`/registry-new${empType.value}/${props.id}`); modal.value = false; } @@ -168,8 +167,6 @@ watch( if (props.id) { fetchInformation(props.id); fetchProfileGov(props.id); - fileName.value = `profile-${props.id}`; - // fetchProfile(props.id as string); } } }