fix
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
<script setup>
|
||||
import mastercard from '@images/logos/mastercard.png'
|
||||
import paypal from '@images/logos/paypal.png'
|
||||
import mastercard from '@images/logos/mastercard.png';
|
||||
import paypal from '@images/logos/paypal.png';
|
||||
import { useStore } from 'vuex';
|
||||
|
||||
const store = useStore();
|
||||
const widgetData = ref([
|
||||
{
|
||||
title: 'Pending Payment',
|
||||
@@ -132,7 +134,16 @@ const {
|
||||
orderBy,
|
||||
},
|
||||
}))
|
||||
onMounted(async () => {
|
||||
store.dispatch('updateIsLoading', true);
|
||||
await store.dispatch('orderList');
|
||||
store.dispatch('updateIsLoading', false);
|
||||
|
||||
let list = store.getters.getOrderList;
|
||||
|
||||
console.log(list);
|
||||
|
||||
});
|
||||
const orders = computed(() => ordersData.value.orders)
|
||||
const totalOrder = computed(() => ordersData.value.total)
|
||||
|
||||
|
Reference in New Issue
Block a user