logapiByMethod

This commit is contained in:
2025-07-16 13:15:53 +07:00
parent dbdd6d7e47
commit 9a8dc24f23
4 changed files with 152 additions and 0 deletions

View File

@@ -151,6 +151,29 @@ export const useDataLogAPIGet = defineStore("DataLogAPI", () => {
}
});
export const useDataLogAPIByMethod = defineStore("DataLogAPIByMethod", () => {
const dataLogAPIByMethod = ref<any[]>([]);
const loadDataLogAPI = async (reqDataLogAPI: Record<string, any>) => {
try {
console.log("REQ", reqDataLogAPI)
dataLogAPIByMethod.value = await $fetch("/api/satu_rssa/logapiByMethod", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(reqDataLogAPI)
});
console.log(dataLogAPIByMethod.value)
} catch (error) {
console.error("Failed to load data log api:", error);
}
};
return{
dataLogAPIByMethod,
loadDataLogAPI,
}
});
export const useDataKunjunganPasien = defineStore("DataKunjunganPasien", () => {
const dataKunjunganPasien = ref<any[]>([]);