เปลี่ยน API

This commit is contained in:
STW_TTTY\stwtt 2024-06-17 09:18:25 +07:00
parent 87952fd5b9
commit bee5736e12
2 changed files with 7 additions and 3 deletions

View file

@ -4,7 +4,7 @@ import type { QTableProps } from "quasar";
import { ref,watch } from "vue";
import { useCounterMixin } from "@/stores/mixin";
import { useQuasar } from "quasar";
import { useRouter, useRoute } from "vue-router";
import http from "@/plugins/http";
import config from "@/app.config";
@ -21,6 +21,9 @@ const {
date2Thai,
} = mixin;
const route = useRoute();
const router = useRouter();
const id = ref<string>(route.params.id as string)
const modal = defineModel<boolean>("modal", { required: true });
const filterKeyword = ref<string>("");
const rows = ref<any[]>([]);
@ -190,7 +193,7 @@ function close() {
function getData(){
showLoader()
http
.get(config.API.placementKeycloak)
.get(config.API.placementKeycloak+`/${id.value}`)
.then((res)=>{
const data = res.data.result
rows.value = data