logapiByMethod
This commit is contained in:
@@ -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[]>([]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user