From 880600a760ee1d069e28923bb8df369526137744 Mon Sep 17 00:00:00 2001 From: R-Sourabh Date: Mon, 9 Dec 2024 18:12:50 +0530 Subject: [PATCH] Improved: rearrange the ionViewDidLeave hook position(#429) --- src/views/ReturnDetails.vue | 6 +++--- src/views/ShipmentDetails.vue | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/ReturnDetails.vue b/src/views/ReturnDetails.vue index 7f18c120..7e740572 100644 --- a/src/views/ReturnDetails.vue +++ b/src/views/ReturnDetails.vue @@ -164,6 +164,9 @@ export default defineComponent({ const current = await this.store.dispatch('return/setCurrent', { shipmentId: this.$route.params.id }) this.observeProductVisibility(); }, + ionViewDidLeave() { + this.productQoh = {}; + }, computed: { ...mapGetters({ current: 'return/getCurrent', @@ -329,9 +332,6 @@ export default defineComponent({ this.queryString = '' } }, - ionViewDidLeave() { - this.productQoh = {}; - }, setup() { const store = useStore(); const router = useRouter(); diff --git a/src/views/ShipmentDetails.vue b/src/views/ShipmentDetails.vue index 6db641f6..c20d3209 100644 --- a/src/views/ShipmentDetails.vue +++ b/src/views/ShipmentDetails.vue @@ -164,6 +164,9 @@ export default defineComponent({ await this.store.dispatch('shipment/setCurrent', { shipmentId: this.$route.params.id }) this.observeProductVisibility(); }, + ionViewDidLeave() { + this.productQoh = {}; + }, computed: { ...mapGetters({ current: 'shipment/getCurrent', @@ -350,9 +353,6 @@ export default defineComponent({ this.queryString = '' } }, - ionViewDidLeave() { - this.productQoh = {}; - }, setup() { const store = useStore(); const router = useRouter();