diff --git a/src/components/Dialogs/PopupPersonalNew.vue b/src/components/Dialogs/PopupPersonalNew.vue index aa32a644b..0b6a235e5 100644 --- a/src/components/Dialogs/PopupPersonalNew.vue +++ b/src/components/Dialogs/PopupPersonalNew.vue @@ -3,6 +3,7 @@ import { ref, reactive, watch, onMounted } from "vue"; import { useQuasar } from "quasar"; import http from "@/plugins/http"; import config from "@/app.config"; +import { useRouter } from "vue-router"; /** importType*/ import type { PersonalImformation } from "@/components/information/interface/response/Information"; @@ -14,6 +15,7 @@ import { useCounterMixin } from "@/stores/mixin"; /** use*/ const mixin = useCounterMixin(); +const router = useRouter(); const $q = useQuasar(); const retireDate = ref(); const { showLoader, hideLoader, messageError, date2Thai } = mixin; @@ -164,7 +166,7 @@ function loaderFunction() { } function redirecToRegistry() { - window.open(`/registry-new/${props.id}`, "_blank"); + router.push(`/registry-new/${props.id}`); modal.value = false; } @@ -395,7 +397,10 @@ async function fetchProfile(id: string) { label="ระดับ" /> -
+
-
+