From 897e274905d372ddee3fcabe15ee855c1b4b60ef Mon Sep 17 00:00:00 2001 From: Mateja Date: Mon, 26 Jul 2021 15:04:35 +0200 Subject: Add back button to product page. --- client/src/views/Product.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'client') diff --git a/client/src/views/Product.vue b/client/src/views/Product.vue index d1fde29..142fb42 100644 --- a/client/src/views/Product.vue +++ b/client/src/views/Product.vue @@ -14,9 +14,10 @@

Amount: {{curProductQuantity}}

- @@ -48,6 +49,9 @@ export default { }, remove() { this.$store.commit('removeFromCart', this.$route.params.id); + }, + back() { + this.$router.back(); } } } -- cgit v1.2.3