From 99f56a89f2ebb9e26b6f2640f980087bb3bbfd92 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Wed, 26 Jul 2023 19:50:56 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=82=E0=B9=88=E0=B8=87=E0=B8=82?= =?UTF-8?q?=E0=B8=B1=E0=B8=99=E0=B8=94=E0=B8=B9=E0=B8=8A=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=A3=E0=B8=AD=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../03_recruiting/views/01_compete/Detail.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/modules/03_recruiting/views/01_compete/Detail.vue b/src/modules/03_recruiting/views/01_compete/Detail.vue index e9361bd30..ff4b32fcb 100644 --- a/src/modules/03_recruiting/views/01_compete/Detail.vue +++ b/src/modules/03_recruiting/views/01_compete/Detail.vue @@ -133,7 +133,7 @@ const router = useRouter(); const route = useRoute(); const { loaderPage } = dataStore; const mixin = useCounterMixin(); -const { messageError } = mixin; +const { messageError, success } = mixin; const year = ref(""); const round = ref(""); const name = ref(""); @@ -451,10 +451,12 @@ const fetchData = async () => { notpass.value = header.notpass; // period information - name.value = period.name; - round.value = period.order as string; - year.value = - period.year >= 2500 ? period.year : ((period.year + 543) as string); + if (period != null) { + name.value = period.name; + round.value = period.order; + year.value = + period.year >= 2500 ? period.year : ((period.year + 543) as string); + } const data = res.data.result.data; if (data.length > 0) {