add api class

This commit is contained in:
Casey Wittrock 2025-10-23 14:33:08 -05:00
parent 9f3c553740
commit 6b0a3d9fa9
3 changed files with 49 additions and 9 deletions

View file

@ -15,6 +15,7 @@
<script setup>
import { onMounted, ref } from "vue";
import DataTable from "../DataTable.vue";
import Api from "../../api";
const tableData = ref([]);
@ -32,9 +33,11 @@ const columns = [
{ label: "Phone", fieldName: "phone" },
];
onMounted(async () => {
let data = await frappe.db.get_list("Contact", searchFields);
let data = await Api.getClientDetails();
console.log(data);
console.log(tableData.value);
tableData.value = data;
});
</script>
<style lang=""></style>
<style lang="css"></style>