perf: remove appendParams

This commit is contained in:
Javier Segarra 2024-11-07 12:53:17 +01:00
parent d2680b0a1f
commit 2bf7fa46ca
3 changed files with 3 additions and 9 deletions

View File

@ -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,

View File

@ -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) {

View File

@ -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"
>
<template #column-nickname="{ row }">
<span class="link">