diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index cdf450966..a4948156a 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -62,7 +62,7 @@ const $props = defineProps({ default: 'flex-one', }, searchUrl: { - type: String, + type: [String, Boolean], default: 'table', }, isEditable: { @@ -73,10 +73,6 @@ const $props = defineProps({ type: Boolean, default: false, }, - appendParams: { - type: Boolean, - default: true, - }, hasSubToolbar: { type: Boolean, default: null, diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index e33cb8b78..747c6ab64 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -247,9 +247,8 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) { } function updateStateParams() { - if (!route) return; const newUrl = { path: route.path, query: { ...(route.query ?? {}) } }; - if (store?.appendParams ?? true) + if (store?.searchUrl) newUrl.query[store.searchUrl] = JSON.stringify(store.currentFilter); if (store.navigate) { diff --git a/src/pages/Customer/components/CustomerSummaryTable.vue b/src/pages/Customer/components/CustomerSummaryTable.vue index 745cbf29e..59e82e252 100644 --- a/src/pages/Customer/components/CustomerSummaryTable.vue +++ b/src/pages/Customer/components/CustomerSummaryTable.vue @@ -183,7 +183,6 @@ const getItemPackagingType = (ticketSales) => { :column-search="false" url="Tickets" :columns="columns" - append-params="false" :without-header="true" auto-load :row-click="rowClick" @@ -191,7 +190,7 @@ const getItemPackagingType = (ticketSales) => { :disable-option="{ card: true, table: true }" class="full-width" :disable-infinite-scroll="true" - search-url="tickets" + :search-url="false" >