ดิง id สมัครสอบจาก path

This commit is contained in:
Kittapath 2023-03-29 12:54:32 +07:00
parent d8e47aad92
commit b5c6c83d62
11 changed files with 75 additions and 31 deletions

View file

@ -37,6 +37,7 @@ import { useQuasar } from 'quasar'
import { useCounterMixin } from '@/stores/mixin'
import http from '@/plugins/http'
import config from '@/app.config'
import { useRoute } from 'vue-router'
const props = defineProps({
fetchStep: {
@ -56,7 +57,8 @@ const rejectMessage = ref<string>('กรุณาจ่ายเงินให
const img = ref<string>('https://cdn-icons-png.flaticon.com/512/2496/2496846.png')
const fileData = ref<any>()
const loader = ref<boolean>(false)
const candidateId = ref<string>('2223ba53-2fb2-470b-8dc1-27e5471b0331')
const route = useRoute()
const examId = ref<string>(route.params.id.toString())
const uploadImg = (file: any) => {
fileData.value = null
@ -69,7 +71,7 @@ const uploadImg = (file: any) => {
const clickPayment = async () => {
loader.value = true
await http
.get(config.API.candidatePayment(candidateId.value))
.get(config.API.candidatePayment(examId.value))
.then(() => {
success($q, 'ส่งหลักฐานชำระเงินสำเร็จ')
})