0
0
Fork 0

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', default: 'flex-one',
}, },
searchUrl: { searchUrl: {
type: String, type: [String, Boolean],
default: 'table', default: 'table',
}, },
isEditable: { isEditable: {
@ -73,10 +73,6 @@ const $props = defineProps({
type: Boolean, type: Boolean,
default: false, default: false,
}, },
appendParams: {
type: Boolean,
default: true,
},
hasSubToolbar: { hasSubToolbar: {
type: Boolean, type: Boolean,
default: null, default: null,

View File

@ -247,9 +247,8 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
} }
function updateStateParams() { function updateStateParams() {
if (!route) return;
const newUrl = { path: route.path, query: { ...(route.query ?? {}) } }; const newUrl = { path: route.path, query: { ...(route.query ?? {}) } };
if (store?.appendParams ?? true) if (store?.searchUrl)
newUrl.query[store.searchUrl] = JSON.stringify(store.currentFilter); newUrl.query[store.searchUrl] = JSON.stringify(store.currentFilter);
if (store.navigate) { if (store.navigate) {

View File

@ -183,7 +183,6 @@ const getItemPackagingType = (ticketSales) => {
:column-search="false" :column-search="false"
url="Tickets" url="Tickets"
:columns="columns" :columns="columns"
append-params="false"
:without-header="true" :without-header="true"
auto-load auto-load
:row-click="rowClick" :row-click="rowClick"
@ -191,7 +190,7 @@ const getItemPackagingType = (ticketSales) => {
:disable-option="{ card: true, table: true }" :disable-option="{ card: true, table: true }"
class="full-width" class="full-width"
:disable-infinite-scroll="true" :disable-infinite-scroll="true"
search-url="tickets" :search-url="false"
> >
<template #column-nickname="{ row }"> <template #column-nickname="{ row }">
<span class="link"> <span class="link">