|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { ref } from "vue";
import { defineStore } from "pinia";
export const useRouteQuery = defineStore("routeQuery", () => {
const categories = ref();
const selectedFunction = ref();
const updateCategories = (value: string) => {
categories.value = value;
};
const updateFunction = (value: string | null) => {
selectedFunction.value = value;
};
return {
categories,
selectedFunction,
updateCategories,
updateFunction,
};
});
|