0
0
Fork 0
This commit is contained in:
Javier Segarra 2024-09-02 09:56:52 +02:00
parent fb15e90f0b
commit cfa5b84f4e
1 changed files with 9 additions and 9 deletions

View File

@ -23,16 +23,16 @@ import { useRoute } from 'vue-router';
const route = useRoute();
const itemTypeWorkersOptions = ref([]);
const sanitizeParam = (param) => {
const params = JSON.parse(route?.query?.table);
return params[param] ?? 'false';
};
// const sanitizeParam = (param) => {
// const params = JSON.parse(route?.query?.table);
// return params[param] ?? 'false';
// };
const $params = ref({});
onMounted(() => {
['mine', 'hasMinPrice', 'showBadDates'].forEach(
(tag) => ($params.value[tag] = sanitizeParam(tag))
);
});
// onMounted(() => {
// ['mine', 'hasMinPrice', 'showBadDates'].forEach(
// (tag) => ($params.value[tag] = sanitizeParam(tag))
// );
// });
const pushParam = (param) => ({
param: { [param]: $params.value[param] },
});