ปิด api ที่ยังไม่ได่ใช้

This commit is contained in:
Kittapath 2023-03-19 00:59:27 +07:00
parent 6ab1a862d6
commit a61dfb8789
6 changed files with 109 additions and 96 deletions

View file

@ -333,20 +333,20 @@ onMounted(async () => {
const fetchQualification = async () => {
// loader.value = true;
await http
.get(config.API.educationQualification)
.then((res) => {
const data = res.data.result
let option: DataOption[] = []
data.map((r: any) => {
option.push({ id: r.id.toString(), name: r.name.toString() })
})
qualificationOptions.value = option
})
.catch((e: any) => {})
.finally(() => {
// loader.value = false;
})
// await http
// .get(config.API.educationQualification)
// .then((res) => {
// const data = res.data.result
// let option: DataOption[] = []
// data.map((r: any) => {
// option.push({ id: r.id.toString(), name: r.name.toString() })
// })
// qualificationOptions.value = option
// })
// .catch((e: any) => {})
// .finally(() => {
// // loader.value = false;
// })
}
const fetchData = async () => {}