add api class
This commit is contained in:
parent
9f3c553740
commit
6b0a3d9fa9
3 changed files with 49 additions and 9 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue