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 route = useRoute();
|
||||||
|
|
||||||
const itemTypeWorkersOptions = ref([]);
|
const itemTypeWorkersOptions = ref([]);
|
||||||
const sanitizeParam = (param) => {
|
// const sanitizeParam = (param) => {
|
||||||
const params = JSON.parse(route?.query?.table);
|
// const params = JSON.parse(route?.query?.table);
|
||||||
return params[param] ?? 'false';
|
// return params[param] ?? 'false';
|
||||||
};
|
// };
|
||||||
const $params = ref({});
|
const $params = ref({});
|
||||||
onMounted(() => {
|
// onMounted(() => {
|
||||||
['mine', 'hasMinPrice', 'showBadDates'].forEach(
|
// ['mine', 'hasMinPrice', 'showBadDates'].forEach(
|
||||||
(tag) => ($params.value[tag] = sanitizeParam(tag))
|
// (tag) => ($params.value[tag] = sanitizeParam(tag))
|
||||||
);
|
// );
|
||||||
});
|
// });
|
||||||
const pushParam = (param) => ({
|
const pushParam = (param) => ({
|
||||||
param: { [param]: $params.value[param] },
|
param: { [param]: $params.value[param] },
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue