view(Purchase): redirect after succesfull purchase.
This commit is contained in:
		@@ -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);
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user