view(Purchase): redirect after succesfull purchase.

This commit is contained in:
Mono Mono 2024-09-28 17:43:55 -05:00
parent 0c065beb30
commit 413c77b1fe
3 changed files with 27 additions and 1 deletions

View File

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