forked from verdnatura/salix-front
feat
This commit is contained in:
parent
fb15e90f0b
commit
cfa5b84f4e
|
@ -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] },
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue