0
0
Fork 0

feat: #6943 Define new props to handle params in URL

This commit is contained in:
Javier Segarra 2024-10-22 23:15:13 +02:00
parent 5944084576
commit 2288c527ae
3 changed files with 6 additions and 3 deletions

View File

@ -69,7 +69,10 @@ const $props = defineProps({
type: Boolean,
default: false,
},
appendParams: {
type: Boolean,
default: true,
},
hasSubToolbar: {
type: Boolean,
default: null,

View File

@ -248,7 +248,7 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
function updateStateParams() {
const newUrl = { path: route.path, query: { ...(route.query ?? {}) } };
if (!route.path.endsWith('/summary'))
if (store.appendParams)
newUrl.query[store.searchUrl] = JSON.stringify(store.currentFilter);
if (store.navigate) {

View File

@ -149,7 +149,7 @@ const setShippedColor = (date) => {
:column-search="false"
url="Tickets"
:columns="columns"
search-url="tickets"
append-params="false"
:without-header="true"
auto-load
order="shipped DESC, id"