view(Purchase): redirect after succesfull purchase.
This commit is contained in:
parent
0c065beb30
commit
413c77b1fe
@ -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);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@ -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>
|
@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<SummaryPurchase />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
//
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user