From 3219ccf902c86abef7aa886fbf4eb41a8248c3b8 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 20 May 2024 15:14:46 +0700 Subject: [PATCH] =?UTF-8?q?fix=20bug=20popup=20=E0=B8=97=E0=B8=B0=E0=B9=80?= =?UTF-8?q?=E0=B8=9A=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dialogs/PopupPersonalNew.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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="ระดับ" /> -
+
-
+