แก้ api

This commit is contained in:
STW_TTTY\stwtt 2024-06-17 10:02:54 +07:00
parent bee5736e12
commit 72a62b4cc0
2 changed files with 7 additions and 4 deletions

View file

@ -4,10 +4,12 @@ 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";
const route = useRoute();
const router = useRouter();
const id = ref<string>(route.params.id as string)
const work = ref<boolean>(false);
const $q = useQuasar();
const mixin = useCounterMixin();
@ -31,7 +33,7 @@ function close() {
function getData() {
showLoader();
http
.get(config.API.orgPosition)
.get(config.API.orgPosition+`/${id.value}`)
.then((res) => {
const data = res.data.result.isProbation;
work.value = data;