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); } } }