itube-specs 0.0.295 → 0.0.297
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<template v-for="(item, subIndex) in filters">
|
|
23
23
|
<ClientOnly v-if="getRangeInfo(item.options)">
|
|
24
24
|
<SSlider
|
|
25
|
-
v-if="(item.kind === 'range') && (item.group.name === group?.name)
|
|
25
|
+
v-if="(item.kind === 'range') && (item.group.name === group?.name)"
|
|
26
26
|
:min="getRangeInfo(item.options)?.min"
|
|
27
27
|
:max="getRangeInfo(item.options)?.max"
|
|
28
28
|
:step="getRangeInfo(item.options)?.step"
|
|
@@ -8,8 +8,6 @@ export const useFetchModels = async (
|
|
|
8
8
|
) => {
|
|
9
9
|
const route = useRoute();
|
|
10
10
|
const lang = useI18n().locale.value as ELanguage;
|
|
11
|
-
const key = EAsyncData.Models;
|
|
12
|
-
const stateKey = computed(() => `data-${key}-${JSON.stringify(route.query)}-${lang}`);
|
|
13
11
|
|
|
14
12
|
const filters = computed(() => Object.entries(route.query)
|
|
15
13
|
.filter(([key]) => key.startsWith('filter_'))
|
|
@@ -19,9 +17,9 @@ export const useFetchModels = async (
|
|
|
19
17
|
})));
|
|
20
18
|
|
|
21
19
|
const { data, status, refresh } = await useAsyncData<PaginatedResponse<IModelCard>>(
|
|
22
|
-
|
|
20
|
+
EAsyncData.Models,
|
|
23
21
|
() => useApiFetcher<PaginatedResponse<IModelCard>>(
|
|
24
|
-
|
|
22
|
+
EAsyncData.Models,
|
|
25
23
|
apiMethod,
|
|
26
24
|
lang,
|
|
27
25
|
{
|