แปลงวันที่หมดอายุ

This commit is contained in:
Kittapath 2023-04-28 12:05:49 +07:00
parent e8b1523895
commit 4ce008fa45
2 changed files with 6 additions and 3 deletions

View file

@ -108,11 +108,14 @@
<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { useRoute } from 'vue-router'
import { useCounterMixin } from '@/stores/mixin'
import http from '@/plugins/http'
import config from '@/app.config'
import { useRoute } from 'vue-router'
const route = useRoute()
const mixin = useCounterMixin() //
const { dateThaiRange, modalDelete, modalConfirm, dateToISO, success } = mixin
const examId = ref<string>(route.params.id.toString())
const positionId = ref<string>(route.params.positionId.toString())
const loader = ref<boolean>(false)
@ -159,7 +162,7 @@ const fetchStatus = async () => {
scoreC.value = data.pointC
examResultinscore.value = data.pass
avatar.value = data.avatar
score_expired.value = data.announcementDate
score_expired.value = new Date(data.announcementDate)
})
.catch(() => {
// acceptTermOfUse.value = false

View file

@ -3,7 +3,7 @@
<q-toolbar class="q-pa-sm text-center">
<q-toolbar-title class="text-dark">
{{ tittle }}
{{ `ครั้งที่${round}/${yearly + 543}` }}
{{ `ครั้งที่${round}/${yearly == null ? '' : yearly + 543}` }}
<div class="text-light text-body2">{{ position }}</div>
</q-toolbar-title>
</q-toolbar>