fix request api search person add body system

This commit is contained in:
Warunee Tamkoo 2025-07-30 15:13:06 +07:00
parent 9cd792e90c
commit a6f7b4e587
9 changed files with 25 additions and 4 deletions

View file

@ -2,6 +2,7 @@
import { ref, reactive, watch } from "vue";
import { useQuasar } from "quasar";
import type { QTableProps } from "quasar";
import { useRoute } from "vue-router";
import http from "@/plugins/http";
import config from "@/app.config";
@ -26,6 +27,7 @@ const pagination = ref({
rowsPerPage: 10,
});
const route = useRoute();
const modalPersonal = ref<boolean>(false);
const personId = ref<string>("");
const searchRef = ref<any>(null);
@ -193,6 +195,7 @@ async function getSearch() {
const body = {
fieldName: type.value,
keyword: search.value,
system: (route.meta?.Key as string) || undefined,
};
await http
.post(