ต่อ api ใบเข้าสอบ

This commit is contained in:
Kittapath 2023-04-06 22:52:53 +07:00
parent 8d53b576e2
commit 04bbc10531
8 changed files with 112 additions and 53 deletions

View file

@ -201,7 +201,6 @@ const getData = async () => {
.get(config.API.candidateUpload(examId.value, positionId.value))
.then((res) => {
const data = res.data.result
// console.log(data)
files.value = data
})
.catch(() => {})
@ -221,7 +220,6 @@ const deleteData = async (id: string) => {
})
.then((res) => {
const data = res.data.result
console.log(data)
})
.catch(() => {})
.finally(async () => {
@ -238,7 +236,6 @@ const uploadData = async () => {
.put(config.API.candidateUpload(examId.value, positionId.value), formData)
.then((res) => {
const data = res.data.result
console.log(data)
})
.catch(() => {})
.finally(async () => {
@ -257,7 +254,6 @@ const downloadData = async (id: string) => {
.get(config.API.candidateDownload(id))
.then((res) => {
const data = res
console.log(data)
})
.catch(() => {})
.finally(() => {