From 5f23bc6020002ef053533bf7c33bc0bdd9e11242 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 29 Apr 2021 10:02:27 +0530 Subject: [PATCH] Fix manual visit --- resources/js/Pages/Contacts/Index.vue | 2 +- resources/js/Pages/Organizations/Index.vue | 2 +- resources/js/Pages/Users/Index.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/js/Pages/Contacts/Index.vue b/resources/js/Pages/Contacts/Index.vue index a2c38d8..6996083 100644 --- a/resources/js/Pages/Contacts/Index.vue +++ b/resources/js/Pages/Contacts/Index.vue @@ -95,7 +95,7 @@ export default { form: { handler: throttle(function() { let query = pickBy(this.form) - this.$inertia.replace(this.route('contacts', Object.keys(query).length ? query : { remember: 'forget' })) + this.$inertia.get(this.route('contacts'), Object.keys(query).length ? query : { remember: 'forget' }, { preserveState: true }) }, 150), deep: true, }, diff --git a/resources/js/Pages/Organizations/Index.vue b/resources/js/Pages/Organizations/Index.vue index aa39f23..b09fc7f 100644 --- a/resources/js/Pages/Organizations/Index.vue +++ b/resources/js/Pages/Organizations/Index.vue @@ -87,7 +87,7 @@ export default { form: { handler: throttle(function() { let query = pickBy(this.form) - this.$inertia.replace(this.route('organizations', Object.keys(query).length ? query : { remember: 'forget' })) + this.$inertia.get(this.route('organizations'), Object.keys(query).length ? query : { remember: 'forget' }, { preserveState: true }) }, 150), deep: true, }, diff --git a/resources/js/Pages/Users/Index.vue b/resources/js/Pages/Users/Index.vue index 15f5d47..52602ec 100644 --- a/resources/js/Pages/Users/Index.vue +++ b/resources/js/Pages/Users/Index.vue @@ -92,7 +92,7 @@ export default { form: { handler: throttle(function() { let query = pickBy(this.form) - this.$inertia.replace(this.route('users', Object.keys(query).length ? query : { remember: 'forget' })) + this.$inertia.get(this.route('users'), Object.keys(query).length ? query : { remember: 'forget' }, { preserveState: true }) }, 150), deep: true, },