diff --git a/src/components/ProductListItem.vue b/src/components/ProductListItem.vue index cd688d79..8125e424 100644 --- a/src/components/ProductListItem.vue +++ b/src/components/ProductListItem.vue @@ -33,6 +33,7 @@ export default defineComponent({ props: ["product"], methods: { async viewProduct () { + await this.store.dispatch("product/updateCurrentProduct", this.product.sku) this.router.push({ path: `/count/${this.product.sku}` }) } }, diff --git a/src/views/count.vue b/src/views/count.vue index 4fbf9fa3..a3c88b55 100644 --- a/src/views/count.vue +++ b/src/views/count.vue @@ -116,9 +116,6 @@ location: "" } }, - ionViewWillEnter() { - this.store.dispatch("product/updateCurrentProduct", this.$route.params.sku) - }, async mounted(){ await this.getFacilityLocations(); },