Se realiza compra desde vuetify #36

Merged
mono merged 4 commits from achive_purchase_from_vuetify_issue_#35 into main 2024-09-28 17:46:57 -05:00
3 changed files with 27 additions and 1 deletions
Showing only changes of commit 413c77b1fe - Show all commits

View File

@ -181,6 +181,7 @@
if (response.ok) { if (response.ok) {
const data = await response.json(); const data = await response.json();
console.log('Compra enviada:', data); console.log('Compra enviada:', data);
this.$router.push("SummaryPurchase");
} else { } else {
console.error('Error al enviar la compra:', response.statusText); console.error('Error al enviar la compra:', response.statusText);
} }
@ -190,7 +191,7 @@
} }
}, },
navigate(route) { navigate(route) {
this.$route.push(route); this.$router.push(route);
}, },
}, },
}; };

View File

@ -0,0 +1,18 @@
<template>
<v-app>
<v-navigation-drawer app>
</v-navigation-drawer>
<v-app-bar>
Resumen de la compra
</v-app-bar>
<v-container>
Pon aqui la información de la compra
</v-container>
</v-app>
</template>
<script>
</script>
<style>
</style>

View File

@ -0,0 +1,7 @@
<template>
<SummaryPurchase />
</template>
<script setup>
//
</script>