itube-specs 0.0.647 → 0.0.649
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.
|
@@ -38,7 +38,14 @@ export const useFetchModelsByLetter = async (
|
|
|
38
38
|
unref(slug),
|
|
39
39
|
)(),
|
|
40
40
|
{
|
|
41
|
-
watch: [
|
|
41
|
+
watch: [
|
|
42
|
+
() => {
|
|
43
|
+
if (route.query) {
|
|
44
|
+
const currentQuery = route.query;
|
|
45
|
+
return JSON.stringify(currentQuery);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
],
|
|
42
49
|
}
|
|
43
50
|
);
|
|
44
51
|
|
|
@@ -21,14 +21,21 @@ export const useFetchModelsByPhrases = async (
|
|
|
21
21
|
stateKey.value,
|
|
22
22
|
apiMethod,
|
|
23
23
|
{
|
|
24
|
-
page: Number(route.query['page
|
|
24
|
+
page: Number(route.query['page']) || 1,
|
|
25
25
|
'per-page': perPage,
|
|
26
26
|
},
|
|
27
27
|
lang,
|
|
28
28
|
slug.value,
|
|
29
29
|
)(),
|
|
30
30
|
{
|
|
31
|
-
watch: [
|
|
31
|
+
watch: [
|
|
32
|
+
() => {
|
|
33
|
+
if (route.query) {
|
|
34
|
+
const currentQuery = route.query;
|
|
35
|
+
return JSON.stringify(currentQuery);
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
],
|
|
32
39
|
}
|
|
33
40
|
);
|
|
34
41
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ELanguage} from '../runtime';
|
|
1
|
+
import type { ELanguage } from '../runtime';
|
|
2
2
|
import { EAsyncData, getSelectedQuery, isMobileDevice } from '../runtime';
|
|
3
3
|
import { sortModels } from '../lib';
|
|
4
4
|
import { useRoute } from 'vue-router';
|
|
@@ -36,7 +36,14 @@ export const useFetchModels = async (
|
|
|
36
36
|
unref(filters)
|
|
37
37
|
)(),
|
|
38
38
|
{
|
|
39
|
-
watch: [
|
|
39
|
+
watch: [
|
|
40
|
+
() => {
|
|
41
|
+
if (route.query) {
|
|
42
|
+
const currentQuery = route.query;
|
|
43
|
+
return JSON.stringify(currentQuery);
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
],
|
|
40
47
|
}
|
|
41
48
|
);
|
|
42
49
|
|